Thunderbird to use FireFox
This was bugging me for a while now… When I get e-mail with URL on it, my thunderbird make it a link automatically. That is nice. the problem is this, when I click on it, it opens the address in Konqueror instead of FireFox. Here is the fix posted to MozillaZine Forum by Beastux. It is awesome. Original posting is here:
- Create a shell script called “openlink.sh” in Thunderbird’s directory (/usr/local/bin/thunderbird/ for me) containing the following lines :
#!/bin/sh export MOZILLA_FIVE_HOME="/usr/local/bin/firefox" url="$1" if [ "x$url" = "x" ]; then url="about:blank" fi if $MOZILLA_FIVE_HOME/mozilla-xremote-client openURL\("$url, new-tab"\); then exit 0 fi exec $MOZILLA_FIVE_HOME/firefox "$url"This will open new tab if there is a copy of FireFox already running. Change it to openURL\(”$url, new-window”\) as you wish.
- chmod +x /usr/local/bin/thunderbird/openlink.sh
- Create a file called user.js in your ~/.thunderbird/default/xxx/ containing :
// Use firefox for http, https & ftp links
user_pref(”network.protocol-handler.app.http”, “/usr/local/bin/thunderbird/openlink.sh”);
user_pref(”network.protocol-handler.app.https”, “/usr/local/bin/thunderbird//openlink.sh”);
user_pref(”network.protocol-handler.app.ftp”, “/usr/local/bin/thunderbird//openlink.sh”); - (You probably don’t have to do this step) Copy mozilla-xremote-client to FireFox directory:
cp /usr/local/bin/thunderbird/mozilla-xremote-client /usr/local/bin/firefox/.
