From d3492be2c26c1cc24f522ce02d4fca121bcc0b07 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 27 Dec 2007 01:50:56 +0000 Subject: [PATCH] fix having two instances of deluge running when fixing environment variables --- scripts/deluge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deluge b/scripts/deluge index b7a9e3a2c..92a076163 100755 --- a/scripts/deluge +++ b/scripts/deluge @@ -60,14 +60,14 @@ if not deluge.common.windows_check(): print "found and fixing ubuntu" os.environ["MOZILLA_FIVE_HOME"] = "/usr/lib/firefox" os.environ["LD_LIBRARY_PATH"] = "/usr/lib/firefox" - os.system("/usr/bin/deluge %s" % arguments) + os.system("/usr/bin/deluge %s &" % arguments) raise SystemExit elif platform.system() == "FreeBSD": if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/local/lib/firefox": print "found and fixing freebsd..." os.environ["MOZILLA_FIVE_HOME"] = "/usr/local/lib/firefox" os.environ["LD_LIBRARY_PATH"] = "/usr/local/lib/firefox" - os.system("/usr/local/bin/deluge %s" % arguments) + os.system("/usr/local/bin/deluge %s &" % arguments) raise SystemExit parser = OptionParser(usage="%prog [options] [torrents to add]",