Forcing Thunderbird to open links in Firefox
If you use Mozilla Thunderbird with KDE you already know that by default Thunderbird open hyperlinks in konqueror. If konqueror your main browser - this post is not for you ;-) Below you can find way how-to force Thunderbird to open hyperlinks in Firefox.
First thing that we need to do is create shell script:
#!/bin/bash
url="$1"
exec /path/to/firefox "$url"
Save that script to Thunderbird default folder. In my case: ~/.mozilla-thunderbird
Now, make that script executable.
Please close Thunderbird and open file prefs.js in your favorite text editor. You can find that file inside Thunderbird profile directory. For example:
~/.mozilla-thunderbird/XXXXXX.default/prefs.js
Now you need add following strings to the end of prefs.js
user_pref("network.protocol-handler.app.ftp", "~/.mozilla-thunderbird/openlink.sh");
user_pref("network.protocol-handler.app.http", "~/.mozilla-thunderbird/openlink.sh");
user_pref("network.protocol-handler.app.https", "~/.mozilla-thunderbird/openlink.sh");
Where openlink.sh file shell script that we saved before.
Now just start Thunderbird and click to any link. It should always open it in Firefox.
I don’t know why Thunderbird didn’t use system default browser either i dont know why there is no settings about broswer in Thunderbird Preferences. I hope this will be fixed sometime, because way above is not clear and not portable. Usually same methods called “hack” ;-)
April 14th, 2007 at 12:07 pm
You don’t necessarily have to create the shell script and edit the prefs.js : just create theses “network.protocol-handler.app.*” entries (”string” type) in the Configuration Editor (Edit > Preferences > Advanced) and set their value to “/usr/bin/firefox” (or wherever you put it) and it will make it right too ;)
(Actually I came to your site by searching for dual-head monitor setup… :D)
April 20th, 2007 at 1:36 pm
Hi, I found your site just before i understood thunderbird uses the alternative system :
You can do the following command to choose an alternative
sudo update-alternatives –config x-www-browser
or you can go to thunderbirds preferences and look for config editor
Edit > Preferences > Advanced > General > config editor.
You will find the entries called network.protocol-handler.app.*
Just type in firefox instead of x-www-browser, this is pretty much the same that you use.
June 5th, 2007 at 10:59 pm
I use Ubuntu 6.10 (edgy) and it is very easy.
I was looking for the answer since two years but without any emphasis.
In Ubuntu you only go to:
System->Preferences->Preferred applications
And declare your browser and mail client.
Cheers!!!