fix having two instances of deluge running when fixing environment variables
This commit is contained in:
parent
c6f69d47e2
commit
d3492be2c2
|
@ -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]",
|
||||
|
|
Loading…
Reference in New Issue