- How can I manually change the default web browser? [closed]
- How to Change the Default Browser in Ubuntu
- Change Default Web Browser in Ubuntu
- Wrap Up
- How to Change Default Web Browser and Email Client in Ubuntu
- How to Change the Default Browser in Ubuntu
- How To Change the Default Mail Client in Ubuntu
- Going Further
- How do I change my default browser?
How can I manually change the default web browser? [closed]
Firefox is not showing in system-settings — system info. So I cannot use the menu to choose it. Is there a config file or something I can edit to make Ubuntu aware that Firefox exists on my system, and allow me to set it as my default browser?
If the Ubuntu version of Firefox keeps crashing your system, you may want to file a bug against it on Launchpad so the developers are aware of the issue.
I’ll happily report a bug, but I don’t know how helpful I could be with that. I don’t know exactly what was causing the crashes, and I assume developers don’t like bug reports without much detail. Since the whole system crashed, I guess it might be something to do with the way the system is interracting with Firefox, because if it were Firefox itself crashing then I’d suppose that it wouldn’t take the whole system with it?
Some sort of report is better than no report. Just make sure when you file it that you try to include as many details as possible about the nature of the problem, especially steps to reproduce it if you can. If the developers need any additional information from you, they’ll let you know in a comment on the report.
This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions here.
Roland — I filed this as a bug report but got a reply that it was invalid, and as I was not using software from the repositories I should take up the issue with the software with the provider of the software package. When I first learned of Ubuntu everyone was positive about it. But now it seems there are people who are not so happy (who often get called trolls) and I can see why. Remember when Microsoft tightly integrated Internet Explorer with the operating system and people weren’t happy? So why has Ubuntu done this with Firefox? Why can’t we have a plain install as in Ubuntu 10?
How to Change the Default Browser in Ubuntu
You probably know that Chrome is the default browser in Ubuntu. But did you know that you can change this? There are several other browsers that come pre-installed with Ubuntu, such as Firefox and Midori. If you’re not a fan of Chrome or if you prefer to use another browser for your browsing needs, changing the default browser from Chrome to Firefox, for example, is pretty straightforward.
This tutorial will show you how to change the default web browser on Ubuntu and other versions of Linux Mint.
Change Default Web Browser in Ubuntu
When you click on a link the system opens it in a browser, which is selected as the default browser. The method to change the default web browser in Ubuntu is quite easy. There are a few steps to follow:
- Open “Settings”
- Select “Default Applications” in the left sidebar
- Select the default browser under the “Web” drop-down
- All done!
To open the system settings, click on the right-top corner, then select settings as shown in the below screenshot.
This will open a settings dialog blog. On the left sidebar, select “Default Applications“.
On this page, you can choose the default web browser in front of the “web” option. You can also use the same page to choose other default applications, like a mail client, audio video player, image viewer, etc.
Wrap Up
On Ubuntu, you can easily change the default browser to any other web browser. If you don’t like Chrome, you can use Firefox for example. This method will also work on other versions of Ubuntu (like Kubuntu, Xubuntu, Lubuntu, and more). If you want to change the default web browser in more than one operating system, you can use the same method.
How to Change Default Web Browser and Email Client in Ubuntu
Ubuntu ships with a slate of default apps handily pre-installed, including Mozilla’s hugely popular Firefox web browser and Thunderbird e-mail client.
While both of these have their fans neither app is — shock — to everyone’s tastes or needs. We often get e-mails or tweets from people asking us how they can change the default browser in Ubuntu or set a different mail client as the handler for mail links, etc.
We’re not just talking about installing a different bit of software here but also how you set it as the system handler for a given file, link or content type.
It is super easy to change a whole slate of default application including web, e-mail, text editing, music and videos players, in Ubuntu. The settings panel where you can make these changes isn’t known to everyone, so we’ll take a quick look.
How to Change the Default Browser in Ubuntu
Mozilla Firefox is a solid, open-source and reliable window on the world wide web but it’s not everyone’s browser of choice. And that’s fine.
To use a different default browser in Ubuntu you will first, rather obviously, need to install a new one. How you do this depends on the one you want:
Open-source web browsers, like Epiphany, Chromium and IceWeasel, are available to install from the Ubuntu Software Center.
Major web-browsers, like Google Chrome, Opera and Vivaldi, must be downloaded from each project’s official website.
Whichever browser you choose, and however you choose to install it, once you have done so you can continue on.
To change the default browser for opening web links click on in other applications, e.g., instant messengers, Twitter clients, e-mail, etc, you need to use the Ubuntu System Settings tool.
You can launch System Settings a number of ways. One of the fastest is to the click the Cog icon in the far-right hand corner (far left on RTL systems) and select the ‘System Settings’ menu shortcut.
- Open ‘System Settings’
- Select the ‘Details’ item
- Select ‘Default Applications’ in the sidebar
- Change the ‘Web’ entry from ‘Firefox’ to your preferred choice
How To Change the Default Mail Client in Ubuntu
Ubuntu ships with Thunderbird as the default mail application. This means the app will open automatically when you click on an email address or a mailto link in most web-browsers, PDFs, instant messengers, and so on.
This convenience is super handy if you use Thunderbird, of course. But a lot of us don’t; we may use a lightweight client like Geary, GNOME stalwart Evolution, or rely on a web-mail service like Gmail or Outlook.
To change the default mail client in Ubuntu from Thunderbird to another application open System Settings > Details > Default Applications. Click the drop-down menu next to ‘Mail’ and choose your preferred client from the list.
To set Gmail as the default mail client in Ubuntu you must first install the ‘gnome-gmail’ package by hitting the button below. Once installed open System Settings > Details > Default Applications. Click the drop-down menu next to ‘Mail’ and choose ‘Gmail’ from the list.
Going Further
The same steps listed above can be used to make your favourite music player open when double clicking on a music file, have an application like VLC handle your .avi and .mp4 files, and so on.
Home / How To / How to Change Default Web Browser and Email Client in Ubuntu
How do I change my default browser?
Wow, that’s a pretty stupid place to put it! Almost as bad as having to go to «settings» to turn off your computer in Windows 8.
To launch this on Ubuntu 14.04 from the CLI try unity-control-center askubuntu.com/questions/116655/…
To access this from CLI use gnome-control-center and go to System > Details . You will also need to use update-alternatives from Sergey P. aka azure’s answer below, since different programs reads settings from different sources.
This is an ubuntu way of doing this
sudo update-alternatives --config x-www-browser sudo update-alternatives --config gnome-www-browser
I tried all the answers here; only the second of these two lines changed the browser in which browser-external links (e.g. from Pidgin) opened.
This is the most appropriate way to do this, working for i3WM and other desktop environments where terminals rules. Thank you for sharing.
This didn’t work for me on ubuntu 16.04 (was trying to change the browser used by thunderbird to open links). The accepted solution worked.
If your preferred browser isn’t in that menu or you prefer doing it from the command line, this command will let you do the same thing as in fossfreedom’s answer:
xdg-settings set default-web-browser name-of-browser.desktop
xdg-settings set default-web-browser firefox.desktop
xdg-settings set default-web-browser chromium-browser.desktop
xdg-settings set default-web-browser google-chrome.desktop
For SEO reasons: this works with i3wm when chrome sneaks into x-www-browser and update-alternatives is out of reach because it requires sudo . You need to have my-application.desktop available, for example in ~/.local/share/applications/my-app.desktop . But you don’t pass the entire path to xdg-settings , only the file name.
Incidentally, I needed to do (unset BROWSER; xdg-settings set default-web-browser firefox-esr.desktop) (I normally use BROWSER=lynx ) because the mere presence of that environment variable made xdg-settings refuse to do its job. While update-alternatives is also a point worth looking at, this is the one I was looking for and that corresponds to “default browser” as the browsers themselves see; thanks!
All preferences about default applications your user located in file «mimeapps.list». I am use Gnome 3 and Debian, so for me it is ~/.config/mimeapps.list .
I you don`t know where is may be located this file, try command:
For override default a web browser you need, at least, change values in category [Default Applications]
- x-scheme-handler/http
- text/html
- application/xhtml_xml
- image/webp
- x-scheme-handler/https
- x-scheme-handler/ftp
- x-scheme-handler/https
- x-scheme-handler/ftp
and in category [Added Associations]
- text/html
- text/xml
- application/xhtml_xml
- image/webp
- x-scheme-handler/https
- x-scheme-handler/ftp
For Opera the file ~/.config/mimeapps.list must contains:
[Default Applications] x-scheme-handler/http=opera-browser.desktop text/html=opera-browser.desktop text/xml=opera-browser.desktop application/xhtml_xml=opera-browser.desktop image/webp=opera-browser.desktop x-scheme-handler/https=opera-browser.desktop x-scheme-handler/ftp=opera-browser.desktop [Added Associations] text/html=opera-browser.desktop; text/xml=opera-browser.desktop; application/xhtml_xml=opera-browser.desktop; image/webp=opera-browser.desktop; x-scheme-handler/https=opera-browser.desktop; x-scheme-handler/ftp=opera-browser.desktop;
Try it (must be open in Opera, if it installed)
For Chrome the file ~/.config/mimeapps.list must contains:
[Default Applications] x-scheme-handler/http=google-chrome.desktop text/html=google-chrome.desktop text/xml=google-chrome.desktop application/xhtml_xml=google-chrome.desktop image/webp=google-chrome.desktop x-scheme-handler/https=google-chrome.desktop x-scheme-handler/ftp=google-chrome.desktop [Added Associations] text/html=google-chrome.desktop; text/xml=google-chrome.desktop; application/xhtml_xml=google-chrome.desktop; image/webp=google-chrome.desktop; x-scheme-handler/https=google-chrome.desktop; x-scheme-handler/ftp=google-chrome.desktop;
Try it (must be open in Chrome, if it installed)
And so on (Firefox, or something else).
You need only override desire mimetypes. But I recommend use GUI for it. It will be reduce amount of errors.
It is actual for me system and will be change from system to system, from desktop environment to desktop environment, and so on.
Testing environment
$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.6 (jessie) Release: 8.6 Codename: jessie $ uname -a Linux localhost 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux $s gnome-session --version gnome-session 3.14.0