Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Using Xubuntu 12.04

I want to be able to click links in Thunderbird emails and have them open in Chromium (package name chromium-browser). Instead, they open in Firefox.

I have tried the following:

1) xfce preferred applications (Chromium is not listed, so I had to hunt down the executable) -- next time I run chromium, it complains that it is no longer the default browser.

2) Telling Chromium to set itself as the default browser. Thunderbird opens links in Firefox.

3) update-alternatives. It's already listed as an alternative at the same priority as Firefox. The "open web browser" app menu item opens Chromium. Thunderbird opens links in Firefox.

I have looked through the entire preferences gui in Thunderbird (but not the advanced config editor yet) and seen nothing that mentions what browser to open links in.

Please note that this is not Google Chrome.

share|improve this question

7 Answers 7

up vote 0 down vote accepted

None of these solutions worked for me. I ran thunderbird using strace, and discovered, that regardless of what value I chose for network.protocol-handler.app.http, it was always attempting to launch /usr/bin/google-chrome. I searched the preferences, and was unable to find any place where this was defined. In the end, I just did: ln -s chromium-browser /usr/bin/google-chrome , and that seemed to fix it.

share|improve this answer
    
hmm, a slimy hack to handle what seems to be a slimy hack in Thunderbird, lol. –  ikmac Jun 6 '12 at 15:44
    
This will have quite the side effect! Use Vitaly's solution below. –  dotancohen Jun 4 '13 at 12:07

This is what I found working for me: You will need to access the "config editor" in Thunderbird itself

open Thunderbird, In 24.6.0 the menu can be accessed on the right hand side of the top menu bar next to the search bar and is represented by three horizontal lines
click Edit > then click Preferences > a new window will open and you will need to find the Advanced tab, at the bottom of that tab Open the Config Editor and search for both network.protocol-handler.warn-external.http and network.protocol-handler.warn-external.https. There are a lot of choices and you will have to scroll down a long way to find these, mine were in alphabetical order which made it easier . These two are most likely to have a value of false. Change it to true (do this by simply right clicking on them) and the next time you'll try to open a link from some e-mail it'll ask you which browser to use. Chromium isn't likely to be shown in the list of choices, so use the navigate button. You can find Chromium at /usr/bin/chromium-browser. if using google chrome as your browser of choice you may want to make it /usr/bin/google-chrome or /usr/bin/google-chrome-stable If Thunderbird doesn't ask you which browser to use when you click on a link after doing this, you can try deleting **mimeTypes.rdf file in your profile folder to reset it.

Original text by Htbaa

share|improve this answer
    
What I use: kb.mozillazine.org/Setting_Your_Default_Browser –  josten Jun 21 '13 at 20:40
2  
Removing the mimeTypes.rdf files was necessary for this to work for me. I used locate mimeTypes.rdf to find all of them. –  Mitch May 5 at 14:30

Edit -> Preferences -> Advanced -> General -> Config Editor...

Right click -> New -> String

Enter the preference name:

network.protocol-handler.app.http

Value:

/usr/bin/x-www-browser

Setting Default Browser

In the command line, type

sudo update-alternatives --config x-www-browser && sudo update-alternatives --config gnome-www-browser

share|improve this answer
    
Helpful to use x-www-browser; however setting the above preference didn't make a difference for me - setting the warn value as recommended by Vitaly did –  David Fraser May 13 at 14:46

In Thunderbird 11.0.1, it is simple, yet not intuitive:

  1. Go to Preferences (Menu EditPreferences).

  2. Click on the Attachments tab.

  3. In the Content Type and Action section set HTTPS, HTTP, and FTP to Use google-chrome (or other desired browser).

That worked for me after trying numerous things in terminal that did not work.

share|improve this answer
    
Found this here and can confirm that it works. This was necessary for me after installing Firefox. Before it worked for me using the warn-external config approach. –  Zeratul Sep 1 at 9:45

Well, I have never used thunderbird but, this looks right -->

When you click on a web link in Thunderbird, it invokes the default web browser for the operating system. It is possible to change this behavior by changing the default browser. On Linux, another way (tried with TB1.5 under Suse and Debian) is to insert the following line in Thunderbird's prefs.js or user.js file (of course put in the correct path to your firefox):

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

You can find where Chromium is by typing -->

which chromium

into the terminal.

Source -->

http://kb.mozillazine.org/Changing_the_web_browser_invoked_by_Thunderbird

share|improve this answer
    
Option (1) in my original question worked -- I previously allowed Chromium to set itself as default, which makes exo-open think there's no default browser. If I point the system default at the Chromium executable, and tell Chromium to stfu, then Thunderbird happily opens it for urls in emails. Obviously Chromium and Ubuntu are thinking two different things about the concept of default browser. Thanks! –  ikmac May 3 '12 at 6:32
    
PS -- this answer also worked, which is why I marked it correct. I just prefer not editing files that say DO NOT EDIT THIS FILE at the top if I can beat the problem into submission another way. –  ikmac May 3 '12 at 6:35

There is one other Thunderbird setting you need to check.

Preferences - Attachments - Incoming

The http and https settings there override the OS default and telling Chromium to make itself the default browser.

See this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=724461

And this for the gory details about how the default browser is determined in Thunderbird: http://kevinlocke.name/bits/2012/07/18/thunderbird-default-browser-linux/

share|improve this answer

This may help anyone stumbling across this later who has it stuck to Firefox

Go to settings control panel, System -> MIME Type Editor, and set each to 'Web Browser':

application/x-extension-html, application/x-extension-shtml, application/x-extension-xhtml, application/xhtml+xml, text/html

Then in settings control panel, Personal -> Preferred Applications, choose chrome

Run sudo update-alternatives --config x-www-browser and choose Chrome

Then launch /usr/bin/x-www-browser and it should start chrome

Then try in Thunderbird.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.