mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +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"
|
print "found and fixing ubuntu"
|
||||||
os.environ["MOZILLA_FIVE_HOME"] = "/usr/lib/firefox"
|
os.environ["MOZILLA_FIVE_HOME"] = "/usr/lib/firefox"
|
||||||
os.environ["LD_LIBRARY_PATH"] = "/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
|
raise SystemExit
|
||||||
elif platform.system() == "FreeBSD":
|
elif platform.system() == "FreeBSD":
|
||||||
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/local/lib/firefox":
|
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/local/lib/firefox":
|
||||||
print "found and fixing freebsd..."
|
print "found and fixing freebsd..."
|
||||||
os.environ["MOZILLA_FIVE_HOME"] = "/usr/local/lib/firefox"
|
os.environ["MOZILLA_FIVE_HOME"] = "/usr/local/lib/firefox"
|
||||||
os.environ["LD_LIBRARY_PATH"] = "/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
|
raise SystemExit
|
||||||
|
|
||||||
parser = OptionParser(usage="%prog [options] [torrents to add]",
|
parser = OptionParser(usage="%prog [options] [torrents to add]",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue