Open geekshen8521 opened 3 years ago
I have read the man page, and desktop files in /usr/share/applications are like these: Exec=/usr/lib/firefox-developer-edition/firefox %u Exec=/opt/firefox-nightly/firefox %u I guess may be this is the reason.
Looks like firecfg strips absolute paths even if they aren't in $PATH.
Because firecfg does not override existing files in ~/.local/share/applications
, you can copy those dot-desktop files and prepend /usr/bin/firejail
on all Exec=
lines.
for ffxdd in /usr/share/applications/firefox-*.desktop; do
sed "s|Exec=|Exec=/usr/bin/firejail |g" "$ffxdd" > ~/.local/share/applications/"$(basename "$ffxdd")"
done
or as oneliner:
for ffxdd in /usr/share/applications/firefox-*.desktop; do sed "s|Exec=|Exec=/usr/bin/firejail |g" "$ffxdd" > ~/.local/share/applications/"$(basename "$ffxdd")"; done
Thanks @rusty-snake
Another workaround is to simply edit the desktop files under ~/.local/share/applications accordingly. And make sure that in PATH variable, /usr/local/bin
precedes /usr/bin/
.
Write clear, concise and in textual form.
Bug and expected behavior
firefox
firefox-nightly
firefox-developer-edition
directly in terminal produce no such problem.Reproduce Steps to reproduce the behavior:
firecfg --fix
Environment
lsb_release -a
,screenfetch
orcat /etc/os-release
) Name="Arch Linux" Kernel=5.11.2-arch1-1firejail --version
) exclusive or used git commit (git rev-parse HEAD
) firejail-git r6994.8a7b96974-1 (from AUR) Additional context firefox firefox-developer-edition (official repo, latest version) firefox-nightly (AUR)firecfg --fix
only generate firefox firefox-developer-edition firefox-nightly desktop files. And only these three are influenced.Checklist
https://github.com/netblue30/firejail/issues/1139
)--profile=PROFILENAME
is used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM
to get english error-messages.browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.debug output