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.

How can I set Google Chrome as the default browser? If I set it in the browser settings, nothing happens. The browser says it's default, but in preferred applications in Gnome, there's only Firefox to choose from. Clicking any link i.e in Thunderbird opens a blank Firefox window, not with the link embedded. Can I set the default browser in dconf2 or any configuration file?

share|improve this question
3  
Have you tried setting the default browser via System Info->Default Applications->Web? –  TreefrogInc Jan 17 '12 at 3:34
add comment

3 Answers

You should have in the ~/.local/share/applications/mimeapps.list file the following lines:

text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

Make sure these lines are under either the [Default Applications] or [Added Associations] section.

And of course, you need google-chrome installed such that google-chrome.desktop is either located at /usr/share/applications/, /usr/local/share/applications/ or ~/.local/share/applications/.

share|improve this answer
    
Thx. Solved my problem. –  Plankalkül Oct 15 '12 at 14:23
add comment

Assuming you are using Unity, click on the dash button in the launcher and search for 'System info'. Then, open 'System info' and move to 'Default applications' section. Then, click on the dropdown list next to Web. There, select 'Google Chrome' and it will be selected as the default web browser for your system.

enter image description here

share|improve this answer
1  
Oh well! I was looking for this myself! They really got away with hiding and removing settings in this Ubuntu version, I thought Default Applications was removed! In Gnome Shell you can access it through System Settings > System Info > Default Applications. –  Wolter Hellmund Jan 17 '12 at 22:38
add comment

There are a number of places an application might figure out which browser to launch and unfortunately there is no established standard. If the other answers don't work for you (as was the case for me with Skype) you could try:

  • the $BROWSER environment variable
  • /usr/bin/x-www-browser, which is configured via the alternatives mechanism: sudo update-alternatives --config x-www-browser (which is what Skype is launching it seems)
share|improve this answer
add comment

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.