How to set default browser?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
e510426762
Level 1
Level 1
Posts: 1
Joined: Sun Mar 11, 2018 11:42 pm

How to set default browser?

Post by e510426762 » Mon Mar 12, 2018 12:13 am

Distributor ID: LinuxMint
Description: Linux Mint 18.2 Sonya
Release: 18.2
Codename: sonya
Desktop Session: xfce
I have installed chromium 64.0.3282.167 and firefox 58.0.2 (64-bit),but when I open a shortcut to the menu bar,it tells an error like that.
截图_2018-03-12_12-10-37.png
截图_2018-03-12_12-10-37.png (14.96 KiB) Viewed 310 times
Unable to execute the default web browser.

How to solve this problem

User avatar
administrollaattori
Level 14
Level 14
Posts: 5487
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How to set default browser?

Post by administrollaattori » Mon Mar 12, 2018 4:21 am

Via command line (Terminal):
If Chromium

Code: Select all

gvfs-mime --set x-scheme-handler/http chromium-browser.desktop
gvfs-mime --set x-scheme-handler/https chromium-browser.desktop
If Firefox

Code: Select all

gvfs-mime --set x-scheme-handler/http firefox.desktop
gvfs-mime --set x-scheme-handler/https firefox.desktop
If Opera

Code: Select all

gvfs-mime --set x-scheme-handler/http opera.desktop
gvfs-mime --set x-scheme-handler/https opera.desktop

User avatar
leadwtZ
Level 3
Level 3
Posts: 130
Joined: Fri Aug 29, 2014 1:42 pm
Location: Universe

Re: How to set default browser?

Post by leadwtZ » Mon Mar 12, 2018 12:44 pm

Hello,

May I ask if setting palemoon as default should follow as:

Code: Select all

 gvfs-mime --set x-scheme-handler/http palemoon.desktop 
as it fails with:

Code: Select all

Failed to load info for handler 'palemoon.desktop' 
And Pale Moon is not listed under Preferred Applications. I have tried:

Code: Select all

sudo update-alternatives --config x-www-browser
[sudo] password for xxxxxx: 
There is only one alternative in link group x-www-browser (providing /usr/bin/x-www-browser): /usr/bin/palemoon
 
I am using Mate - Sylvia.
Any help appreciated,

Tx.
Celeron CPU G1610@2.60GHz x 2
GeForce 8400 GS/PCle/SSE2
Linux MInt 18.3 'Sylvia' Mate 1.18
Reg. Linux user: 467766 Claws-Mail & Pale Moon user.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5487
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How to set default browser?

Post by administrollaattori » Mon Mar 12, 2018 12:49 pm

leadwtZ wrote:
Mon Mar 12, 2018 12:44 pm
Hello,

May I ask if setting palemoon as default should follow as:

Code: Select all

 gvfs-mime --set x-scheme-handler/http palemoon.desktop 
as it fails with:

Code: Select all

Failed to load info for handler 'palemoon.desktop' 
Probably your command is wrong. What tells

Code: Select all

apt show palemoon

Code: Select all

locate palemoon.desktop

User avatar
leadwtZ
Level 3
Level 3
Posts: 130
Joined: Fri Aug 29, 2014 1:42 pm
Location: Universe

Re: How to set default browser?

Post by leadwtZ » Mon Mar 12, 2018 1:59 pm

Hello

Code: Select all

apt show palemoon
N: Unable to locate package palemoon
N: Unable to locate package palemoon
E: No packages found
 
That is fair enough I think as it is not a package as such it is a .tar

Code: Select all

 locate palemoon.desktop
/home/geopol/.local/share/applications/palemoon.desktop
/usr/share/applications/palemoon.desktop
 
I've been looking in the wrong place?

Hope this helps
Celeron CPU G1610@2.60GHz x 2
GeForce 8400 GS/PCle/SSE2
Linux MInt 18.3 'Sylvia' Mate 1.18
Reg. Linux user: 467766 Claws-Mail & Pale Moon user.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5487
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How to set default browser?

Post by administrollaattori » Mon Mar 12, 2018 2:27 pm

leadwtZ wrote:
Mon Mar 12, 2018 1:59 pm
That is fair enough I think as it is not a package as such it is a .tar

Code: Select all

 locate palemoon.desktop
/home/geopol/.local/share/applications/palemoon.desktop
/usr/share/applications/palemoon.desktop
 
One trick is to "cheat" system is to install some another browser like Firefox and make shortcut from /usr/share/applications/palemoon.desktop to /usr/share/applications/firefox.desktop, and set "Firefox as Palemoon" about a default browser.

Code: Select all

apt install firefox
sudo mv /usr/share/applications/firefox.desktop /usr/share/applications/firefox.desktop.orig
sudo ln -s /usr/share/applications/palemoon.desktop /usr/share/applications/firefox.desktop
gvfs-mime --set x-scheme-handler/http firefox.desktop
gvfs-mime --set x-scheme-handler/https firefox.desktop

User avatar
leadwtZ
Level 3
Level 3
Posts: 130
Joined: Fri Aug 29, 2014 1:42 pm
Location: Universe

Re: How to set default browser?

Post by leadwtZ » Mon Mar 12, 2018 6:05 pm

Interesting that the system has to be 'cheated' that seems a little odd to me.

However I will think on it and maybe try it too but not keen on having Firefox (or other) sitting on the system.

Thanks - appreciated.
Celeron CPU G1610@2.60GHz x 2
GeForce 8400 GS/PCle/SSE2
Linux MInt 18.3 'Sylvia' Mate 1.18
Reg. Linux user: 467766 Claws-Mail & Pale Moon user.

User avatar
Schultz
Level 6
Level 6
Posts: 1337
Joined: Thu Feb 25, 2016 8:57 pm

Re: How to set default browser?

Post by Schultz » Mon Mar 12, 2018 7:14 pm

Why don't you just install Pale Moon with the installer tool?
http://linux.palemoon.org/download/installer/

Or, there is also an official endorsed third-party build of which you can add its ppa.
https://software.opensuse.org/download. ... e=palemoon

User avatar
leadwtZ
Level 3
Level 3
Posts: 130
Joined: Fri Aug 29, 2014 1:42 pm
Location: Universe

Re: How to set default browser?

Post by leadwtZ » Tue Mar 13, 2018 7:16 am

Schultz I do use the PM installer however I have now added Steve's PPA and with the result that Pale Moon now appears in Preferred Apps!

Nice one - thanks :)
Celeron CPU G1610@2.60GHz x 2
GeForce 8400 GS/PCle/SSE2
Linux MInt 18.3 'Sylvia' Mate 1.18
Reg. Linux user: 467766 Claws-Mail & Pale Moon user.

Post Reply

Return to “Software & Applications”