xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #830: sound-win32-console.patch

File sound-win32-console.patch, 637 bytes (added by Antoine Martin, 6 years ago)

tries to avoid showing the console window - causes more problems...

  • src/xpra/net/subprocess_wrapper.py

     
    239239    def exec_kwargs(self):
    240240        if os.name=="posix":
    241241            return {"close_fds" : True}
     242        elif sys.platform.startswith("win"):
     243            #avoid showing a new console window on win32:
     244            startupinfo = subprocess.STARTUPINFO()
     245            startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
     246            return {"startupinfo" : startupinfo}
    242247        return {}
    243248
    244249