Remove cruft for ubuntu check
This commit is contained in:
parent
3bc4f167f2
commit
ef4ea151f4
|
@ -47,18 +47,6 @@ import deluge._dbus as dbus
|
|||
import deluge.interface
|
||||
import deluge.pref
|
||||
|
||||
if not deluge.common.windows_check():
|
||||
import platform
|
||||
if platform.system() == "Linux": # Add this, FreeBSD and other OSs than Linux do not have /etc/issue.
|
||||
print "checking for ubuntu..."
|
||||
if os.WEXITSTATUS(os.system('grep -iq "Ubuntu" /etc/issue')) == 0:
|
||||
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/lib/firefox":
|
||||
print "found and fixing ubuntu"
|
||||
os.environ["MOZILLA_FIVE_HOME"] = "/usr/lib/firefox"
|
||||
os.environ["LD_LIBRARY_PATH"] = "/usr/lib/firefox"
|
||||
subprocess.Popen(sys.argv)
|
||||
raise SystemExit
|
||||
|
||||
parser = OptionParser(usage="%prog [options] [torrents to add]",
|
||||
version=deluge.common.PROGRAM_VERSION)
|
||||
parser.add_option("-c", "--config", dest="config", help="Sets the configuration path")
|
||||
|
|
Loading…
Reference in New Issue