How to make Chrome as default browser?
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
How to make Chrome as default browser?
Hi, I can not put Chrome as default web browser. I use the Debian method:
$update-alternatives --list x-www-browser
/opt/firefox/firefox
/usr/bin/google-chrome
/usr/bin/iceweasel
$sudo update-alternatives --config x-www-browser
There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/google-chrome 200 auto mode
1 /opt/firefox/firefox 70 manual mode
2 /usr/bin/google-chrome 200 manual mode
3 /usr/bin/iceweasel 70 manual mode
Press enter to keep the current choice[*], or type selection number: 2
Then in Cinnamon I go to the option but the menu only show Firefox.
In XFCE i put google-chrome in preferred application but continus asking for it?
$update-alternatives --list x-www-browser
/opt/firefox/firefox
/usr/bin/google-chrome
/usr/bin/iceweasel
$sudo update-alternatives --config x-www-browser
There are 3 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/google-chrome 200 auto mode
1 /opt/firefox/firefox 70 manual mode
2 /usr/bin/google-chrome 200 manual mode
3 /usr/bin/iceweasel 70 manual mode
Press enter to keep the current choice[*], or type selection number: 2
Then in Cinnamon I go to the option but the menu only show Firefox.
In XFCE i put google-chrome in preferred application but continus asking for it?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to make Chrome as default browser?
See [SOLVED] Chromium wont become default browser - Ubuntu Forums : http://ubuntuforums.org/showthread.php?t=1753431
especially post #8
especially post #8
Re: How to make Chrome as default browser?
Unfortunately that solution doesn't work for me (Linux Mint 13 - MATE 64bit). The file ~/.local/share/applications/mimeapps.list already exists and is writeable, but chromium-browser is incapable of setting anything in it.
Under Chromium Settings -> Basics it says "Chromium cannot determine or set the default browser."
I have a workaround:
1. Start Firefox.
2. Edit -> Preferences -> Advanced -> System Defaults -> Always check to see if Firefox is the default browser on startup -> Check Now.
3. Set Firefox as the default.
4. Exit Firefox.
5.
Clearly, it's pretty unsatisfactory to have to do this, particularly as I already have Control Centre -> Preferrred Applications -> Internet -> Web Browser set to "Chromium" (this appears to do nothing!), and also did the update-alternatives thing that the OP refers to above!
Under Chromium Settings -> Basics it says "Chromium cannot determine or set the default browser."
I have a workaround:
1. Start Firefox.
2. Edit -> Preferences -> Advanced -> System Defaults -> Always check to see if Firefox is the default browser on startup -> Check Now.
3. Set Firefox as the default.
4. Exit Firefox.
5.
Code: Select all
cd ~/.local/share/applications
perl -pi.old -e 's/firefox/chromium-browser/g;' mimeapps.list
- grimdestripador
- Level 6
- Posts: 1051
- Joined: Fri Feb 16, 2007 2:26 am
Re: How to make Chrome as default browser?
This thread need more attention.
Re: How to make Chrome as default browser?
Even editing ~/.local/share/applications/mimeapps.list
as suggested 2 replies back, doesn't seem to effect where skype fetches its browser from.
Skype claims to use the default browser, but after doing the above, it still uses firefox. There must be another file around somewhere that says firefox is the default.
as suggested 2 replies back, doesn't seem to effect where skype fetches its browser from.
Skype claims to use the default browser, but after doing the above, it still uses firefox. There must be another file around somewhere that says firefox is the default.
Re: How to make Chrome as default browser?
OK, this article describes the extent of the problem:
http://blog.codef00.com/2011/02/18/the- ... x-debacle/
It seems skype uses the BROWSER environment variable convention. So setting that to /usr/bin/chromium-browser means skype will now use chromium.
http://blog.codef00.com/2011/02/18/the- ... x-debacle/
It seems skype uses the BROWSER environment variable convention. So setting that to /usr/bin/chromium-browser means skype will now use chromium.
Re: How to make Chrome as default browser?
Just want to share the solution that worked for me to get chromium invoked by thunderbird:
The proper app should be reported by:
And if it isn't, set it with:
Rob
The proper app should be reported by:
Code: Select all
gconftool-2 -g /desktop/gnome/url-handlers/http/command
Code: Select all
gconftool-2 --type string -s /desktop/gnome/url-handlers/http/command "chromium %s"
Re: How to make Chrome as default browser?
I found I had to use update-alternatives to set not only gnome-www-browser, but also x-www-browser. Then it worked for me.
$ sudo update-alternatives --config gnome-www-browser
There are 2 choices for the alternative gnome-www-browser (providing /usr/bin/gnome-www-browser).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/chromium-browser 40 auto mode
1 /usr/bin/chromium-browser 40 manual mode
2 /usr/bin/firefox 40 manual mode
Press enter to keep the current choice[*], or type selection number:
$ sudo update-alternatives --config x-www-browser
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/chromium-browser 40 auto mode
1 /usr/bin/chromium-browser 40 manual mode
* 2 /usr/bin/firefox 40 manual mode
Press enter to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/bin/chromium-browser to provide /usr/bin/x-www-browser (x-www-browser) in auto mode.
$ sudo update-alternatives --config gnome-www-browser
There are 2 choices for the alternative gnome-www-browser (providing /usr/bin/gnome-www-browser).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/chromium-browser 40 auto mode
1 /usr/bin/chromium-browser 40 manual mode
2 /usr/bin/firefox 40 manual mode
Press enter to keep the current choice[*], or type selection number:
$ sudo update-alternatives --config x-www-browser
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/chromium-browser 40 auto mode
1 /usr/bin/chromium-browser 40 manual mode
* 2 /usr/bin/firefox 40 manual mode
Press enter to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/bin/chromium-browser to provide /usr/bin/x-www-browser (x-www-browser) in auto mode.
-
- Level 3
- Posts: 145
- Joined: Thu Apr 28, 2011 4:38 pm
- Location: Boston
Re: How to make Chrome as default browser?
I know this is a little late, but figure I would offer this since it solved it for me, and is the easiest solution IMHO.
It seems Chrome is not added to /usr/share/applications upon install. Running this command will copy the executionary shortcut to this location:
Then you can go into Applications and set it as default appropriately.
It seems Chrome is not added to /usr/share/applications upon install. Running this command will copy the executionary shortcut to this location:
Code: Select all
sudo cp /opt/google/chrome/google-chrome.desktop /usr/share/applications
the beauty of linux is that the rabbit hole goes as deep as you want it to go.
Re: How to make Chrome as default browser?
The last post -- about /usr/share/applications -- did the trick for me. TIL
- RobertLM78
- Level 3
- Posts: 183
- Joined: Sat Apr 28, 2012 4:19 am
- Location: US
Re: How to make Chrome as default browser?
This did the trick for my problem. I have Firefox set as the default browswer, but somehow after installing Chromium and Opera as backup browsers any hyperlink in MATE was opening in Opera - it was pretty annoying, so many thanks!!lingo wrote:I found I had to use update-alternatives to set not only gnome-www-browser, but also x-www-browser. Then it worked for me.
$ sudo update-alternatives --config gnome-www-browser
There are 2 choices for the alternative gnome-www-browser (providing /usr/bin/gnome-www-browser).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/chromium-browser 40 auto mode
1 /usr/bin/chromium-browser 40 manual mode
2 /usr/bin/firefox 40 manual mode
Press enter to keep the current choice[*], or type selection number:
$ sudo update-alternatives --config x-www-browser
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/chromium-browser 40 auto mode
1 /usr/bin/chromium-browser 40 manual mode
* 2 /usr/bin/firefox 40 manual mode
Press enter to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/bin/chromium-browser to provide /usr/bin/x-www-browser (x-www-browser) in auto mode.
I'm going to have to remember this the next time my /usr/bin/x-www-browser and /usr/bin/gnome-www-browser settings get borked by an alternative browser install.
Gateway DX4860, Sapphire Radeon HD 5450, 8 GB RAM, Mint 17.3 64-bit (Rosa), MATE
AMD Ryzen 3-3100, AMD Radeon RX 570, 16 GB RAM, Mint 21 (Vanessa), MATE
AMD Ryzen 3-3100, AMD Radeon RX 570, 16 GB RAM, Mint 21 (Vanessa), MATE
Re: How to make Chrome as default browser?
That was exactly what i needed. I chose firefox as my default, but I hadnt gone in and edited these 2 files.
sudo update-alternatives --config x-www-browser
sudo update-alternatives --config gnome-www-browser
They were both set to chrome
sudo update-alternatives --config x-www-browser
sudo update-alternatives --config gnome-www-browser
They were both set to chrome
Re: How to make Chrome as default browser?
Mint 15 XFCE here.
I did thishttp://ubuntuforums.org/showthread.php?t=1560802 post #8
(change application settings in gnome session) and it worked for me.
I did thishttp://ubuntuforums.org/showthread.php?t=1560802 post #8
(change application settings in gnome session) and it worked for me.
Re: How to make Chrome as default browser?
For me I wanted to set Firefox as default browser after installing Chrome.
I need to do 2 things:
1. run and choose Firefox
2. run
After that it is working fine and opening links in FireFox
Regards,
Konki
I need to do 2 things:
1. run
Code: Select all
sudo update-alternatives --config x-www-browser
2. run
Code: Select all
xdg-mime default firefox.desktop x-scheme-handler/http
Regards,
Konki