Making PM default browser on Debian

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
loxodont
Astronaut
Astronaut
Posts: 725
Joined: 2014-07-26, 23:03
Location: Mare Serenitatis

Making PM default browser on Debian

Unread post by loxodont » 2018-10-09, 19:51

There's a question on the german language board about making (and keeping) Pale Moon the default browser on Debian (stable)
viewtopic.php?f=7&t=20624

berni says he installed Pale Moon deb package and set it to default browser when asked, but it seems to switch back to Firefox somehow ...
I never used Debian and don't know the mentioned terminal commands, so can anyone here help with this?
I'll translate it then to the original post.
thx

User avatar
stevenpusser
Project Contributor
Project Contributor
Posts: 903
Joined: 2015-08-01, 18:33

Re: Making PM default browser on Debian

Unread post by stevenpusser » 2018-10-11, 20:15

loxodont wrote:There's a question on the german language board about making (and keeping) Pale Moon the default browser on Debian (stable)
viewtopic.php?f=7&t=20624

berni says he installed Pale Moon deb package and set it to default browser when asked, but it seems to switch back to Firefox somehow ...
I never used Debian and don't know the mentioned terminal commands, so can anyone here help with this?
I'll translate it then to the original post.
thx
Possibly he may have to set it as the default browser in the desktop environment's settings, or as the default "x-www-browser" in the Debian alternatives system (galternatives is a nice GUI for this; KDE users can use kalternatives)

User avatar
loxodont
Astronaut
Astronaut
Posts: 725
Joined: 2014-07-26, 23:03
Location: Mare Serenitatis

Re: Making PM default browser on Debian

Unread post by loxodont » 2018-10-12, 09:35

thx steve, I'll tell him.

berni

Re: Making PM default browser on Debian

Unread post by berni » 2019-01-04, 11:58

I'm answering here directly, 'caus I think it's easier without having loxodont as a proxy (thanks for that anyway).
Possibly he may have to set it as the default browser in the desktop environment's settings, or as the default "x-www-browser" in the Debian alternatives system (galternatives is a nice GUI for this; KDE users can use kalternatives)
This is not, what I'm looking for. I don't want to change the system wide default browser (which influences other users), but the default browser on my local account.

Meanwhile I found out, that PM creates a file called ~/.config/mimeapps.list when I click on "Make Pale Moon the default browser" in Settings->Advanced.

With the command "xdg-settings get default-web-browser" I can query the default browser. Here some protocol:

$> xdg-settings get default-web-browser
firefox-esr.desktop
[Now I clicked on "Make Pale Moon the default browser"]
$> xdg-settings get default-web-browser
/usr/bin/xdg-mime: 912: local: Moon-XYVHQZ.desktop: bad variable name
firefox-esr.desktop


Investigating on that error message, I found out that the space in "Pale Moon" in the file ~/.config/mimeapps.list causes the trouble. The shell script /usr/bin/xdg-mime seems to consider that space as a separator and not part of the entry. Now I replaced that space by a minus and "xdg-settings get default-web-browser" works:

$> xdg-settings get default-web-browser
userapp-Pale-Moon-XYVHQZ.desktop


But still firefox is lounched, probably, because the minus-sign is wrong and PM cannot be found.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2183
Joined: 2018-05-05, 13:29

Re: Making PM default browser on Debian

Unread post by vannilla » 2019-01-04, 12:26

Isn't that entry the name of a file?
You'd also have to change the file's name to match the changes you applied.
(I'm not 100% sure it's the cause since my system does it in a different way, but it's worth taking a look.)

User avatar
Moonraker
Board Warrior
Board Warrior
Posts: 1878
Joined: 2015-09-30, 23:02
Location: uk.

Re: Making PM default browser on Debian

Unread post by Moonraker » 2019-01-04, 12:38

Have you tried uninstalling firefox and then see what happens.?.perhaps not much help but maybe a reinstall would help.sorry its not much help.
user of multiple puppy linuxes..upup,fossapup.scpup,xenialpup..... :thumbup:

Pale moon 29.4.1

murga

Re: Making PM default browser on Debian

Unread post by murga » 2019-01-04, 13:05

File on path /etc/alternatives/x-www-browser link to /usr/bin/firefox or palemoon

berni

Re: Making PM default browser on Debian

Unread post by berni » 2019-01-04, 13:28

vannilla wrote:Isn't that entry the name of a file?
You'd also have to change the file's name to match the changes you applied.
(I'm not 100% sure it's the cause since my system does it in a different way, but it's worth taking a look.)
I found this file at ~/.local/share/applications/ renamed it and it works, when I use xdg-open but unfortunatley not, when clicking a link in my email program... It seems to use a different approch to find out about the default browser...

As a side note: I think, pale moon should rename that file and the entries in mimeapps.list too. In my eyes the space there is a bug.

Now, I will continue to investigate, how my e-mail program starts the default browser...

PS: The e-mail program has some preferences which I changed from "firefox" to "xdg-open". Now it works.

Locked