Can't seem to change default browser

Garry Knight garryknight at gmx.net
Sun Feb 11 21:24:37 UTC 2007


Douglas Phillipson wrote:

> I'm trying to get Thunderbird to use Firefox as the default browser.
> I've changed the default browser in "System Settings-> Default
> applications" to Firefox but Thunderbird defiantly still uses Konqueror
> as its default.

Thunderbird, like Firefox, is a GTK application. It won't look to KDE for
its settings.

The fix is to put the following into your
~/.thunderbird/xxxxxxxx.default/prefs.js file. It can go at the bottom of
the file, though Thunderbird might rearrange it when it runs.

user_pref("network.protocol-handler.app.ftp", "/usr/local/bin/firefox");
user_pref("network.protocol-handler.app.http", "/usr/local/bin/firefox");
user_pref("network.protocol-handler.app.https", "/usr/local/bin/firefox");
user_pref("network.protocol-handler.external.http", true);

If you or anyone else wants a sure-fire way to get Firefox to pass mailto:
links to Thunderbird, you can do the following:

enter about:config to the addressbar
set (or create) these key-value pairs:
network.protocol-handler.external.mailto (bool) = true
network.protocol-handler.app.mailto (string) = /usr/local/bin/thunderbird

or put the following into ~/.mozilla/firefox/xxxxxxxx.default/prefs.js:
user_pref("network.protocol-handler.app.mailto", "/usr/local/bin/thunderbird");

-- 
Garry Knight
garryknight at gmx.net






More information about the kubuntu-users mailing list