From d8372a6846d2f6fdeb126cc9c5aa6955e55f4228 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Mon, 25 Nov 2013 14:04:49 +0000 Subject: [PATCH] When launching apps, use os.system instead of popen so children don't end up in zombie waiting for us to wait() for them --- usr/lib/linuxmint/mintMenu/plugins/execute.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/execute.py b/usr/lib/linuxmint/mintMenu/plugins/execute.py index fdfb84c..cdbed90 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/execute.py +++ b/usr/lib/linuxmint/mintMenu/plugins/execute.py @@ -32,7 +32,10 @@ def Execute( cmd , commandCwd=None): try: os.chdir( cwd ) - subprocess.Popen( cmd ) + string = ' '.join(cmd) + string = string + " &" + #subprocess.Popen( cmd ) // use os.system instead of popen so children don't end up in zombie waiting for us to wait() for them + os.system(string) return True except Exception, detail: print detail