Fix starting the daemon in OS X

This commit is contained in:
Andrew Resch 2009-04-14 20:40:29 +00:00
parent 7fb5e546e8
commit 9daf288da1
1 changed files with 2 additions and 0 deletions

View File

@ -527,6 +527,8 @@ class Client(object):
try: try:
if deluge.common.windows_check(): if deluge.common.windows_check():
win32api.WinExec("deluged --port=%s --config=%s" % (port, config)) win32api.WinExec("deluged --port=%s --config=%s" % (port, config))
elif deluge.common.osx_check():
subprocess.call(["nohup", "deluged", "--port=%s" % port, "--config=%s" % config])
else: else:
subprocess.call(["deluged", "--port=%s" % port, "--config=%s" % config]) subprocess.call(["deluged", "--port=%s" % port, "--config=%s" % config])
except Exception, e: except Exception, e: