mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-11 02:46:39 +00:00
no more zombie processes when launching external apps
This commit is contained in:
parent
f73e9be9c9
commit
91531deb6d
@ -186,12 +186,11 @@ def fetch_url(url):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def exec_command(executable, *parameters):
|
def exec_command(executable, *parameters):
|
||||||
from subprocess import Popen
|
import os
|
||||||
|
|
||||||
command = [executable]
|
command = [executable]
|
||||||
command.extend(parameters)
|
command.extend(parameters)
|
||||||
try:
|
try:
|
||||||
Popen(command)
|
os.WEXITSTATUS(os.system(command[0] +" "+ command[1]))
|
||||||
except OSError:
|
except OSError:
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user