fix having two instances of deluge running when fixing environment variables

This commit is contained in:
Marcos Pinto 2007-12-27 01:50:56 +00:00
parent c6f69d47e2
commit d3492be2c2
1 changed files with 2 additions and 2 deletions

View File

@ -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]",