def main(self): setupWizard = self.getSetupWizard() Wine.wizard(self.getSetupWizard()).selectPrefix( "TestPrefix").runBackground("winecfg").waitExit() setupWizard.close()
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()
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)
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)
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)
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)
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)
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()
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()
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()
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()
def main(self): setupWizard = self.getSetupWizard() Wine.wizard(self.getSetupWizard()).selectPrefix("TestPrefix").runBackground("winecfg").waitExit() setupWizard.close()