Linux Mint - Pale Moon behaves differently when opened from Thunderbird

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!
ZFR77
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2018-01-31, 15:16

Linux Mint - Pale Moon behaves differently when opened from Thunderbird

Unread post by ZFR77 » 2020-09-11, 17:47

Not sure if this is a problem with Pale Moon or Thunderbird, but there is an issue with the way Palemoon works when it's opened by clicking a link from Thunderbird.

Using Linux Mint 19.3
Pale Moon 28.13.0 (64 bit)

I have Pale Moon set up as my default browser (~/.config/mimeapps.list)
x-scheme-handler/http=userapp-Pale Moon-FPALE0.desktop;
x-scheme-handler/https=userapp-Pale Moon-FPALE0.desktop;thunderbird.desktop;

I have Thunderbird set up to open links using default browser (Pale Moon)

When I open a link from Thunderbird, it opens correctly in Pale Moon. However, when this happens, Pale Moon informs me it's not the default browser and asks me if I want to set it as default. If I select Yes, then my default browser changes to "Thunderbird" (mimeapps.list changes it to thunderbird.desktop).
This doesn't happen if I open a link from Thunderbird with Pale Moon already open. In this case it proceeds to open the link normally in a new tab.

User avatar
therube
Board Warrior
Board Warrior
Posts: 1648
Joined: 2018-06-08, 17:02

Re: Linux Mint - Pale Moon behaves differently when opened from Thunderbird

Unread post by therube » 2020-09-11, 18:42

What version of TB?

Is PM from PM or elsewhere?

If PM is closed, & you type at a shell prompt: (on Windows, c:\> start )https://www.google.com (or whatever it might be to get, on Linux, your browser to open & load google.com), what happens?

ZFR77
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2018-01-31, 15:16

Re: Linux Mint - Pale Moon behaves differently when opened from Thunderbird

Unread post by ZFR77 » 2020-09-11, 19:40

Thanks.
therube wrote:
2020-09-11, 18:42
What version of TB?
68.10.0 (64-bit)
therube wrote:
2020-09-11, 18:42
Is PM from PM or elsewhere?
I'm using stevenpusser's PPA for Ubuntu.
therube wrote:
2020-09-11, 18:42
If PM is closed, & you type at a shell prompt: (on Windows, c:\> start )https://www.google.com (or whatever it might be to get, on Linux, your browser to open & load google.com), what happens?
Running "xdg-open https://www.google.com" from the terminal opens google.com in Pale Moon. Nothing regarding default browser being incorrect appears.

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

Re: Linux Mint - Pale Moon behaves differently when opened from Thunderbird

Unread post by stevenpusser » 2020-09-12, 03:26

Is this with the Cinnamon desktop in Mint?

(BTW, I maintain an OBS repo, not an Ubuntu Launchpad PPA. There's quite a difference.)

ZFR77
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2018-01-31, 15:16

Re: Linux Mint - Pale Moon behaves differently when opened from Thunderbird

Unread post by ZFR77 » 2020-09-12, 19:06

stevepusser wrote:
2020-09-12, 03:26
Is this with the Cinnamon desktop in Mint?
Yes, sir! Version 4.4.8
stevepusser wrote:
2020-09-12, 03:26
(BTW, I maintain an OBS repo, not an Ubuntu Launchpad PPA. There's quite a difference.)
You're right. Sorry, I sometimes incorrectly refer to repositories as PPAs and vice versa.

ZFR77
Hobby Astronomer
Hobby Astronomer
Posts: 28
Joined: 2018-01-31, 15:16

Re: Linux Mint - Pale Moon behaves differently when opened from Thunderbird

Unread post by ZFR77 » 2020-09-12, 20:25

OK, I looked at the source code at

nsBrowserGlue.js
nsGNOMEShellService.cpp

I'm not an expert, but I think I might have found something regarding why this is happening.

When Pale Moon is launched from Thunderbird, MOZ_APP_LAUNCHER is set to Thunderbird,
which causes mAppPath to be that for Thunderbird, so KeyMatchesAppName compares Thunderbird to existing default browser (which is Pale Moon), which causes Pale Moon to change the default browser from Pale Moon to Thunderbird.

Locked