I have got it works with hack, but I am not going to file a new ticket yet. Since FreeBSD's python-gnome2-extras supports anyone to compile with different gecko options (SeaMonkey, Firefox and etc). The default is Firefox. Here's what I have made some change in local.mezz wrote:Ah, I see, I have found LD_LIBRARY_PATH and MOZILLA_FIVE_HOME in scripts/deluge. Let me hack around and file a new ticket with a patch when I get it works. Thanks for hint!
Code: Select all
import os, platform
[...]
print "checking for ubuntu..."
if not deluge.common.windows_check():
if platform.system() == "Linux": # Add this, FreeBSD and other OSs than Linux do not have /etc/issue.
if os.WEXITSTATUS(os.system('grep -iq "Ubuntu" /etc/issue')) == 0:
print "found and fixing ubuntu"
if os.environ.get("MOZILLA_FIVE_HOME") != "/usr/lib/firefox":
os.environ["MOZILLA_FIVE_HOME"] = "/usr/lib/firefox"
os.environ["LD_LIBRARY_PATH"] = "/usr/lib/firefox"
os.system("/usr/bin/deluge")
raise SystemExit
if platform.system() == "FreeBSD":
if os.environ.get("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.system("/usr/local/bin/deluge")
raise SystemExit