[clug] Thunderbird opening links in chrome, but I want to use Firefox

Tony Lewis tony at lewistribe.com
Sat Jun 15 06:43:59 UTC 2024


Hi got a couple of off-list replies (thanks), but no solution yet.

A clue from using strace: it appears to be trying to use 
`gio-launch-desktop`:

[pid 1856322] 
execve("/snap/thunderbird/482/usr/sbin/gio-launch-desktop", 
["gio-launch-desktop", "/usr/bin/xdg-open", "https://myurl.com"], 
0x722d1b399800 /* 125 vars */) = -1 ENOENT (No such file or directory)

It tries various paths looking for it and can't find it.  I see I have 
gio-launch-desktop installed from a package:

libglib2.0-0t64: /usr/lib/x86_64-linux-gnu/glib-2.0/gio-launch-desktop

But it's not in the PATH, or in the directories it is being looked for.  
If I manually reconstruct the command with the full path, then it launches:

/usr/lib/x86_64-linux-gnu/glib-2.0/gio-launch-desktop /usr/bin/xdg-open 
https://myurl.com

So a workaround would appear to be that I can copy or link the 'missing' 
binary into a path.  But I'm not sure if this breaks the apparmor 
containment or have other unintended consequences, or whether it will 
work at all.  I'm, also not sure why this is apparently not affecting 
others.

Tony


On 15/6/24 13:05, Tony Lewis via linux wrote:
> Hi all,
>
> I upgraded to Kubuntu 24.04 recently, and now Thunderbird will launch 
> links with Chrome.  I've had it using Firefox for years.
>
> Going to 24.04 forced me into using the Snap version of Thunderbird, 
> which gave me some teething issues but now seems OK. In fact for a 
> while it wouldn't open links, to do with apparmor. I was getting 
> errors like:
>
>     apparmor="DENIED" operation="userns_create" class="namespace" 
> info="User namespace creation restricted" error=-13 
> profile="unconfined" pid=58873 comm="chrome" requested="userns_create" 
> denied="userns_create"
>
> Which certainly indicates Thunderbird is trying to launch Chrome. Now 
> I don't get the error, I get Chrome, but I want it to Firefox.
>
> My default handler in the desktop is set to Firefox.  I confirmed this 
> with `xdg-open google.com`, and I even switched to Chrome temporarily, 
> tested it, and switched back.
>
> I can't see any suitable settings to change, and I can't seem to find 
> anything in the advanced settings either.  Searching the internet 
> didn't seem to help me either.
>
> Any clues?  Thanks in advance,
>
> Tony
>


More information about the linux mailing list