mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6981] Firejailed Thunderbird can't open links in Firejailed Firefox (Separate jails) when /usr/local/bin/firefox exists at thunderbird launch. Discord also had trouble opening links but its usage of private-bin works around this issue #3443
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ipaqmaster on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6981
Description
due to firejail-in-firejail with Thunderbird's default profile - clicking URLs fails to open in the existing Firefox session, running in its own separate jail profile.
When /usr/local/bin/firefox exists as a symlink to firejail, thunderbird attempts to launch firefox using that -Causing firejail-in-firejail and a "missing configuration" complaint instead of opening the link.
This can be demonstrated by launching firefox which will hit the /usr/local/bin/firefox path (Symlink to /usr/bin/firejail) launching it in firejail, then removing that symlink and starting thunderbird also with a firejail symlink in /usr/local/bin and with its default thunderbird.profile it can open links in firefox now (At the cost of now having to re-create the firefox symlink to firejail immediately after.
Discord also can't seem to open links out of the box but uses a
private-binwhich actually works around this issue.By adding the below, firejailed Discord can open links in a firejailed firefox:
It seems
private-binis capable of grabbing the real Firefox path instead of falling for /usr/local/bin/firefox (/usr/bin/firejail)Using the above on thunderbird does not work. I suspect this is because of its silly launcher design on Archlinux.
/usr/bin/thunderbirdis a shell script with the content:I tried for a few minutes to include the real thunderbird path, but failed to get it to execute and moved on. Probably a noexec line somewhere in the defualt profile or its includes.
Steps to Reproduce
Steps to reproduce the behavior
/usr/local/bin/firefoxand/usr/local/bin/thunderbirdExpected behavior
Open the link in the Firefox window on the same screen.
Actual behavior
Does not do that.
Behavior without a profile
Works
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
No difference
Additional context
There needs to be some kind of new flag to tell firejail to ignore anything in PATH which is just a symlink to itself. I think that would solve most of the issues I've experienced with it day to day - and after each update, when it restores its /usr/local/bin symlinks preventing the launching of a number of programs.
Any other detail that may help to understand/debug the problem
Environment
uname -srm):Linux 6.12.58-1-lts x86_64Arch Linuxmesa 1:24.3.3-2"):
Mozilla Firefox 145.0.1Mozilla Thunderbird 145.0firejail --version):firejail version 0.9.76was compiled (
git rev-parse HEAD):Checklist
firejail /usr/bin/vlcinstead offirejail vlc; seehttps://github.com/netblue30/firejail/issues/2877)/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)There ARE some similar issues, some from 2021 which sound relevant but the discussion being held has been since fixed for a long time. Despite the title sounding the same as this one.
Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@ipaqmaster commented on GitHub (Dec 4, 2025):
Ugh that was stupid... yeah it's a script starting with
#!/bin/shso obviously private-bin needs to includesh.... the discord fix works on thunderbird if I addshto its private-bin.All thunderbird needs to open links in Firefox in each their own jail while /usr/bin/firejail is symlinked to path /usr/local/bin/firefox, is the below:
Because the use of
private-binavoids hitting /usr/local/bin/firefox (> /usr/bin/firejail) and breaking Thunderbird's ability to launch it. Not clean... but if it make this work for me then that's alright.That said... it's very sluggish now with that thunderbird.local file I've just created. I wonder what's caused that.