thunderbird wont open HTTP links with firefox
[ link: firefoxlinks | tags: linux thunderbird firefox | updated: Fri, 17 Apr 2020 12:12:08 -0400 ]
Im not sure why, but at some point, I lost the ability to click http links in my thunderbird email program and have them automagically open up in firefox. Read on for a sure fire fix!
I have the thunderbrowse addon for thunderbird and opening the http links would not work with or without this installed. There was something else funky with firefox going on. I also had the following set in my thunderbird's prefs.js, but it still didnt work.
user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.https", "/usr/bin/firefox");
What eventually ended up working was to make a wrapper script for firefox to unset LD_PRELOAD and then run firefox. The script that works for me is below.
#!/bin/sh
unset LD_PRELOAD
export LD_LIBRARY_PATH="/usr/lib/mozilla-firefox${LD_LIBRARY_PATH+":${LD_LIBRARY_PATH}"}"
exec "/usr/lib/mozilla-firefox"/firefox "$@"
Note: you may need to modify the above script to the appropriate paths on your system.
make sure you chmod +x the above script (i called it /usr/bin/firefox2)
chmod +x /usr/bin/firefox2
Then in your thunderbird preferences (about:config is accessed via "Tools -> Options -> Advanced -> General -> Config Editor (button)". ) or thunderbrowse settings, point it to this wrapper script (/usr/bin/firefox2) and you should be all set!
-db
Like this article? Buy me a beer!