mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +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
|
||||
|
||||
def exec_command(executable, *parameters):
|
||||
from subprocess import Popen
|
||||
|
||||
import os
|
||||
command = [executable]
|
||||
command.extend(parameters)
|
||||
try:
|
||||
Popen(command)
|
||||
os.WEXITSTATUS(os.system(command[0] +" "+ command[1]))
|
||||
except OSError:
|
||||
import gtk
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user