How to set Google Chrome as the default browser?
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?
Solution 1:
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.
Solution 2:
You should have in the ~/.config/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/
.
Solution 3:
Alternatively, you can do the following instead of editing mimeapps.list
:
xdg-mime default google-chrome.desktop text/html
xdg-mime default google-chrome.desktop x-scheme-handler/http
xdg-mime default google-chrome.desktop x-scheme-handler/https
xdg-mime default google-chrome.desktop x-scheme-handler/about
To check the current settings, you can use:
xdg-mime query default text/html
xdg-mime query default x-scheme-handler/http
xdg-mime query default x-scheme-handler/https
xdg-mime query default x-scheme-handler/about