示例#1
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Wine.wizard(self.getSetupWizard()).selectPrefix(
            "TestPrefix").runBackground("winecfg").waitExit()

        setupWizard.close()
示例#2
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Wine.wizard(
            self.getSetupWizard()).selectPrefix("TestPrefix").createPrefix(
                "1.7.33", "upstream").overrideDlls({
                    "gdiplus": "builtin"
                }).runBackground("winecfg").waitExit()

        setupWizard.close()
示例#3
0
        def POL_Wine_PrefixCreate(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)
            prefixName = self.command[3]
            version = self.command[4]

            try:
                arch = self.command[5]
                arch = str(Architecture.fromWinePackageName(arch).name())
            except IndexError:
                arch = None

            if(arch is not None):
                Wine.wizard(setupWindow).selectPrefix(prefixName).createPrefix(version, "upstream", arch)
            else:
                Wine.wizard(setupWindow).selectPrefix(prefixName).createPrefix(version, arch)
示例#4
0
        def POL_Config_PrefixRead(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)

            prefixName = self.command[3]
            key = self.command[4]

            return Wine.wizard(setupWindow).selectPrefix(prefixName).config().readValue(key)
示例#5
0
        def POL_Config_PrefixRead(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)

            prefixName = self.command[3]
            key = self.command[4]

            return Wine.wizard(setupWindow).selectPrefix(
                prefixName).config().readValue(key)
示例#6
0
        def POL_Wine_PrefixCreate(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)
            prefixName = self.command[3]
            version = self.command[4]

            try:
                arch = self.command[5]
                arch = str(Architecture.fromWinePackageName(arch).name())
            except IndexError:
                arch = None

            if (arch is not None):
                Wine.wizard(setupWindow).selectPrefix(prefixName).createPrefix(
                    version, "upstream", arch)
            else:
                Wine.wizard(setupWindow).selectPrefix(prefixName).createPrefix(
                    version, arch)
示例#7
0
        def POL_Config_PrefixWrite(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)

            prefixName = self.command[3]
            key = self.command[4]
            value = self.command[5]

            return Wine(setupWindow).selectPrefix(
                prefixName).config().writeValue(key, value)
示例#8
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Wine.wizard(self.getSetupWizard()).selectPrefix("TestPrefix").createPrefix("1.7.35")

        Wine.wizard(self.getSetupWizard()).selectPrefix("TestPrefix").createPrefix("1.7.35")
        Wine.wizard(self.getSetupWizard()).selectPrefix("TestPrefix2").createPrefix("1.4.1", "upstream")

        setupWizard.close()
    def main(self):
        setupWizard = self.setupWizard()

        Wine.wizard(self.setupWizard()).selectPrefix(
            "TestPrefix").createPrefix("1.7.36")

        Wine.wizard(self.setupWizard()).selectPrefix(
            "TestPrefix").createPrefix("1.7.36")
        Wine.wizard(
            self.setupWizard()).selectPrefix("TestPrefix2").createPrefix(
                "1.4.1", "upstream")

        setupWizard.close()
示例#10
0
        def POL_Wine(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)
            workingDirectory = self.command[3]
            prefixName = self.command[4]
            fifoOut = self.command[5]
            fifoErr = self.command[6]
            env = EnvironmentFormatter.getEnvironmentVarsFromBashBase64EncodedString(self.command[7])
            prgmName = self.command[8]
            args = self.command[9::1]

            return Wine.wizard(setupWindow).selectPrefix(prefixName)\
                .withErrorStream(FileOutputStream(File(fifoErr)))\
                .withOutputStream(FileOutputStream(File(fifoOut)))\
                .runForeground(
                    workingDirectory,
                    prgmName,
                    args,
                    env
                ).getLastReturnCode()
示例#11
0
        def POL_Wine(self):
            setupWindowId = self.command[2]
            setupWindow = self.setupWindowManager.getWindow(setupWindowId)
            workingDirectory = self.command[3]
            prefixName = self.command[4]
            fifoOut = self.command[5]
            fifoErr = self.command[6]
            env = EnvironmentFormatter.getEnvironmentVarsFromBashBase64EncodedString(
                self.command[7])
            prgmName = self.command[8]
            args = self.command[9::1]

            return Wine.wizard(setupWindow).selectPrefix(prefixName)\
                .withErrorStream(FileOutputStream(File(fifoErr)))\
                .withOutputStream(FileOutputStream(File(fifoOut)))\
                .runForeground(
                    workingDirectory,
                    prgmName,
                    args,
                    env
                ).getLastReturnCode()
示例#12
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Wine.wizard(self.getSetupWizard()).selectPrefix("TestPrefix").createPrefix("1.7.33", "upstream").overrideDlls({"gdiplus":"builtin"}).runBackground("winecfg").waitExit()

        setupWizard.close()
示例#13
0
    def main(self):
        setupWizard = self.getSetupWizard()

        Wine.wizard(self.getSetupWizard()).selectPrefix("TestPrefix").runBackground("winecfg").waitExit()

        setupWizard.close()