Making PM default browser fails due to spaces in filenames.

The place to report Pale Moon specific bugs on Linux and other operating systems.

Moderator: satrow

User avatar
berni
Moongazer
Moongazer
Posts: 14
Joined: 2018-10-02, 10:08

Making PM default browser fails due to spaces in filenames.

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

When clicking "Preferences->Advanced->Make Pale Moon the default browser" PM creates a file called ".config/mimeapps.list" PM also creates a file "~/.local/share/applications/userapp-Pale Moon-XYVHQZ.desktop" (I don't know if that happens, when that button is clicked or earlier.) Both files might be found in different locations on different systems. Those two files help xdg-open to decide on the default browser. Unfortunately xdg cannot handle filenames with spaces (here between "Pale" and "Moon") properly (maybe spaces are not even allowed by xdg-specification, I don't know). Yet I would recommend to get rid of this spaces, either by removing them alltogether or by replacing them by - or something else.

See https://forum.palemoon.org/viewtopic.php?f=37&t=20639 for more details.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24451
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Making PM default browser fails due to spaces in filenames.

Unread post by Moonchild » 2019-01-04, 14:11

Don't blame us for a (likely purposefully) limitation of the xdg utils. XDG assumes and tends to enforce their "recommendation" to not have spaces in file names and directories, despite the fact that this has been a thing for a very long time already.
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

User avatar
berni
Moongazer
Moongazer
Posts: 14
Joined: 2018-10-02, 10:08

Re: Making PM default browser fails due to spaces in filenames.

Unread post by berni » 2019-01-04, 14:57

Moonchild wrote:Don't blame us for a (likely purposefully) limitation of the xdg utils. XDG assumes and tends to enforce their "recommendation" to not have spaces in file names and directories, despite the fact that this has been a thing for a very long time already.
I don't want to blame no one. But I think it's always easier to change one self (in this case PM) than others (XDG). ;)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24451
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Making PM default browser fails due to spaces in filenames.

Unread post by Moonchild » 2019-01-04, 16:57

berni wrote:But I think it's always easier to change one self (in this case PM) than others (XDG). ;)
Patches welcome. This kind of thing is so far on the backburner our core devs will likely never get to it.
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Locked