I have recently come across some situations where I want to start a command completely independently, and in a different process then the script, equivalent typing it into a terminal, or more specifically writing the command into a .sh or .desktop and double clicking it. The request I have are:
- I can close the python window without closing the application.
- The python window does not display the stdout from the application (you don't want random text appearing in a CLI), nor do I need it!.
Things I have tried:
- os.system waits.
- subprocess.call waits.
- subprocess.Popen starts a subprocess (duh) closing the parent process thus quits the application
And thats basically all you can find on the web! if it really comes down to it I could launch a .sh (or .bat for windows), but that feels like a cheap hack and not the way to do this.