How to set default browser?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
e510426762

How to set default browser?

Post by e510426762 »

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
Unable to execute the default web browser.

How to solve this problem
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.
kukamuumuka

Re: How to set default browser?

Post by kukamuumuka »

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
leadwtZ

Re: How to set default browser?

Post by leadwtZ »

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.
kukamuumuka

Re: How to set default browser?

Post by kukamuumuka »

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
leadwtZ

Re: How to set default browser?

Post by leadwtZ »

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
kukamuumuka

Re: How to set default browser?

Post by kukamuumuka »

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
leadwtZ

Re: How to set default browser?

Post by leadwtZ »

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.
User avatar
Schultz
Level 9
Level 9
Posts: 2957
Joined: Thu Feb 25, 2016 8:57 pm

Re: How to set default browser?

Post by Schultz »

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
leadwtZ

Re: How to set default browser?

Post by leadwtZ »

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 :)
Locked

Return to “Software & Applications”