mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4018] Desktop Entry: firecfg --fix can not distinguish firefox, firefox-nightly, firefox-developer-edition,... #2506
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#2506
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 @geekshen8521 on GitHub (Feb 28, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4018
Write clear, concise and in textual form.
Bug and expected behavior
With firefox, firefox-nightly, firefox-developer-edition installed.
firecfg --fix generates firefox-*.desktop file where each
"Exec" part of the desktop file contains the same "firefox", instead of firefox-nightly, firefox-developer-edition as they should be. Now all desktop files launches the same firefox version.
The Exec part of each firefox version should be different according to their firefox versions.
firefoxfirefox-nightlyfirefox-developer-editiondirectly in terminal produce no such problem.Reproduce
Steps to reproduce the behavior:
firecfg --fixEnvironment
lsb_release -a,screenfetchorcat /etc/os-release)Name="Arch Linux"
Kernel=5.11.2-arch1-1
firejail --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 --fixonly generate firefox firefox-developer-edition firefox-nightly desktop files. And only these three are influenced.Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAMto get english error-messages.browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.debug output
@geekshen8521 commented on GitHub (Feb 28, 2021):
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.
@rusty-snake commented on GitHub (Feb 28, 2021):
Looks like firecfg strips absolute paths even if they aren't in $PATH.
@rusty-snake commented on GitHub (Feb 28, 2021):
Workaround
Because firecfg does not override existing files in
~/.local/share/applications, you can copy those dot-desktop files and prepend/usr/bin/firejailon allExec=lines.or as oneliner:
@geekshen8521 commented on GitHub (Feb 28, 2021):
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/binprecedes/usr/bin/.