Pale Moon on Linux not Pale Moon on Linux for AMO

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderator: trava90

Locked
SvenG

Pale Moon on Linux not Pale Moon on Linux for AMO

Post by SvenG » 2014-10-25, 09:42

When I want to install a Linux specific addon, AMO tells me I do not have a Linux OS.... Example
https://addons.mozilla.org/de/firefox/a ... /versions/
after manual download the addon works perfectly.

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

Re: Pale Moon on Linux not Pale Moon on Linux for AMO

Post by Moonchild » 2014-10-25, 10:14

Since AMO requires a specific override, the OS passed in that override will be fixed.

To work around this, change the about:config preference general.useragent.override.addons.mozilla.org to something more applicable to your OS.
e.g.

Code: Select all

Mozilla/5.0 (Linux; X11; rv:24.9) Gecko/20100101 Firefox/24.9 PaleMoon/24.9
There is currently no automated way built in for this for Linux-specific addons through AMO (thanks to their UA sniffing and refusing service accordingly).
The UA override for AMO is something for the Linux maintainer to change in the branding prefs when building.
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

SvenG

Re: Pale Moon on Linux not Pale Moon on Linux for AMO

Post by SvenG » 2014-10-25, 10:20

Okay, so these overwrite the general user agent... didn't think about that. But, yes, the default value should be changed during build time.

Thanks.

access2godzilla

Re: Pale Moon on Linux not Pale Moon on Linux for AMO

Post by access2godzilla » 2014-10-28, 07:53

This could also be added in the following manner:

browser/app/profile/firefox.js:

Code: Select all

#ifdef XP_LINUX
pref("general.useragent.override.addons.mozilla.org","Mozilla/5.0 (Linux; X11; rv:24.9) Gecko/20100101 Firefox/24.9 PaleMoon/24.9");
#elif XP_WIN
pref("general.useragent.override.addons.mozilla.org","Mozilla/5.0 (Windows NT 6.3; rv:24.9) Gecko/20100101 Firefox/24.9 PaleMoon/24.9");
#elif XP_MACOSX
// [...]
#endif

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 7611
Joined: 2012-10-09, 19:37
Location: Just beyond the Lament Configuration

Re: Pale Moon on Linux not Pale Moon on Linux for AMO

Post by New Tobin Paradigm » 2014-10-28, 08:41

access2godzilla wrote:This could also be added in the following manner:

browser/app/profile/firefox.js:

Code: Select all

#ifdef XP_LINUX
pref("general.useragent.override.addons.mozilla.org","Mozilla/5.0 (Linux; X11; rv:24.9) Gecko/20100101 Firefox/24.9 PaleMoon/24.9");
#elif XP_WIN
pref("general.useragent.override.addons.mozilla.org","Mozilla/5.0 (Windows NT 6.3; rv:24.9) Gecko/20100101 Firefox/24.9 PaleMoon/24.9");
#elif XP_MACOSX
// [...]
#endif
That is a solution. a2g.. why not create a patch and do a pull request.
Image
- We have such sights to show you. -

Image

Locked