fix config error

This commit is contained in:
Marcos Pinto 2007-12-26 20:10:15 +00:00
parent ab8e6e6bde
commit 7e748a1306
1 changed files with 4 additions and 4 deletions

View File

@ -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: