mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
fix having two instances of deluge running when fixing environment variables
This commit is contained in:
parent
c6f69d47e2
commit
d3492be2c2
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue