Penguin
Note: You are viewing an old revision of this page. View the current version.

No http handler under linux by default

I found that the http protocol was not set up with a handler under linux. Its possible that with a more recent version of GNOME this would 'just work', however I used the following trick (similar to the mailto: protocol handler in MozillaFirefoxNotes)

Note, that I use MozillaFirefox as my browser, so its this that I wish to set up as the handler for http:

First of all, I created a handler script to run firefox. It can be found at http://www.wlug.org.nz/archive/firefox-helper.sh

I put this under /bin, made it executable, and tested it with '/bin/firefox-helper.sh http://www.wlug.org.nz/' - the wlug homepage opens in a new tab.

I then added the following entry to my prefs.js under my thunderbird profile dir
user_pref("network.protocol-handler.app.http", "/home/dhtrl1/bin/firefox-helper.sh");

and restarted thunderbird.

Try putting it in user.js not prefs.js as Thunderbird will just over-write this... -- ReneBartosh

  • Close Thunderbird before you edit, and you won't have that problem -- DrewBroadley

I've just spend the last couple of hours trying to figure out a fairly similar problem! Under KDE3, Thunderbird opens URL links with Konquerer (the default browser for opening a URL), and I wanted to use Firefox. So I figured the easiest way would be somewhere in kde's config, changing the default browser that it uses to open URL's..

Honestly, even Microsoft doesn't make it THIS HARD to change your default browser!!

The easy solution was to change the browser Thunderbird uses. You don't need any shell script however. I'm using this;

user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");

I'd still like to know if there's a way of changing the default web browser for everything in KDE though.


In addition, so Thunderbird can redirect some additional protocls (FTP and HTTPS) add the following
user_pref("network.protocol-handler.app.https", "/location/to/firefox"); user_pref("network.protocol-handler.app.ftp", "/location/to/firefox");
Aswel as that, you can define another FTP program to handle the FTP transactions (though Mozilla handles them just fine, try the following
user_pref("network.protocol-handler.app.ftp", "/location/to/ftpprogram");