Setting Pale Moon as default browser creates the file "~/.local/share/applications/userapp-Pale Moon-G2GJRZ.desktop" and adds numerous references to the file in ~/.config/mimeapps.list. (The "G2GJRZ" part of the file name seems to be randomly-generated.)
The file name "userapp-Pale Moon-G2GJRZ.desktop" does not comply with the spec https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#file-naming which stipulates that the file name may not contain spaces.
The non-compliant file name triggers an error with xdg-mime, which I use in scripts to display the default browser:
Code: Select all
xdg-mime query default x-scheme-handler/http
/usr/bin/xdg-mime: 953: local: Moon-O5RJOZ.desktop: bad variable name
I tested twice, one with the file name changed it to "~/.local/share/applications/userapp-PaleMoon-G2GJRZ.desktop", the other to "~/.local/share/applications/userapp-Pale_Moon-G2GJRZ.desktop".
Code: Select all
xdg-mime query default x-scheme-handler/http
userapp-PaleMoon-O5RJOZ.desktop