I open Chromium and the browser ask me if I want to set it as my default browser. I click on "set as default" and close the browser.
But when I open Chromium again I get the same question. Ubuntu 11.04 seems not to set Chromium correctly as my default browser.
How to fix that?
Try changing your your preferred browser.
17.10+
Settings > Details > Default Applications
On older versions
Open Preferred Applications from Preferences > Preferred Appplications.
Change the default Web Browser to your liking.
To change the browser globally, run the next command in a terminal:
Enter the number of
chromium-browser
and press Enter to confirm it.Start google-chrome from a terminal in the foreground (leave off the &):
me:/home/me>
google-chrome
Click on the prompt to make chrome the default browser.... notice that it is getting a permissions problem on
.local/share/applications/mimeapps.list
. The applications directory is owned byroot
and chrome was running asme
. In order to fix the problem, I used:Then I restarted google-chrome. It created the following entries in
cat .local/share/applications/mimeapps.list
I suppose you could just create those entries in the file if there is a security problem with changing the owner of the
.local
directory.For me updating the alternatives in Ubuntu 19.10 did not work, it appears it depends on the fact URLs are opened by xdg-open, and I found that this made it work: