My problem is that I don't know how to release a resources using python.
I'm using Ubuntu Linux and trying to call some application, but when it is called, it doesn't release resources, it just hangs. I know about &
but it gets passed as argument to application, it doesn't execute application in background.
My code:
import os, subprocess
path_to_app = os.path.join('/', 'usr', 'bin', 'firefox')
subprocess.Popen([path_to_app], '&')
print("Something..") # Hangs until app is closed
How to just run application and move on, without hanging ?