fix config error
This commit is contained in:
parent
ab8e6e6bde
commit
7e748a1306
|
@ -60,8 +60,8 @@ if not deluge.common.windows_check():
|
||||||
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/lib/firefox":
|
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/lib/firefox":
|
||||||
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"
|
||||||
if config in options:
|
if (options.config != None):
|
||||||
os.system("/usr/bin/deluge %s %s" %(options, args))
|
os.system("/usr/bin/deluge --config %s %s" %(options.config, args))
|
||||||
elif args:
|
elif args:
|
||||||
os.system("/usr/bin/deluge %s" %(args))
|
os.system("/usr/bin/deluge %s" %(args))
|
||||||
else:
|
else:
|
||||||
|
@ -71,8 +71,8 @@ if not deluge.common.windows_check():
|
||||||
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/local/lib/firefox":
|
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/local/lib/firefox":
|
||||||
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"
|
||||||
if config in options:
|
if (options.config != None):
|
||||||
os.system("/usr/local/bin/deluge %s %s" %(options, args))
|
os.system("/usr/local/bin/deluge --config %s %s" %(options.config, args))
|
||||||
elif args:
|
elif args:
|
||||||
os.system("/usr/local/bin/deluge %s" %(args))
|
os.system("/usr/local/bin/deluge %s" %(args))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue