Clicking a link in Thunderbird or Libre Office Writer opens a new instance of Firefox with my home page and not the required URL.
My home page always opens, whether I use left-click, ctrl+left-click or middle click (open link in new tab) in Thunderbird; or ctrl+left-click or Open hyperlink
from the Libre context menu.
To open an external link, I have to select Copy link location
from the Thunderbird context menu, then paste the URL into Firefox. In Libre, I have to manually copy the URL.
Can anyone help me to fix this problem?
There are many similar questions, but they seem to be very old and relate to obsolete versions.
I am using Linux Mint Cinnamon 21.1 with the latest versions of Firefox and Thunderbird. Libre Office is 7.3.7.2. The problem is not version-specific (it used to happen when I ran Firejail, but I removed Firejail partly because of similar problems). Firefox is my default (and only) browser.
Edit - in answer to #harrymc comment
It's a new computer, this year. A new SSD, Linux, etc. Personal settings and data were restored from a backup. https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles describes the process - if I have read it correctly, any corruption from the old profile would get copied over. I am not about to create a new virgin profile and loose all my bookmarks, passwords, etc.
strace xdg-open "https://openstreetmap.org" 2>&1 | grep -i "desktop"
may provide hints as to which/where.desktop
file is being opened (depending on the distribution).