mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6773] xkeyboard-config 2.45: cannot start many programs (new /usr/share path) #3366
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#3366
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 @myrslint on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6773
Description
I use Arch Linux with firejail built from the AUR that builds tip of the tree from this repository. Currently, a new version of xkeyboard-config, version 2.45, is in extra-testing due to later land in official Arch Linux extra package repository.
Since upgrading to that version of xkeyboard-config some applications that worked fine before fail to launch under firejail. The applications I have tested which display this issue are: Firefox, Thunderbird, Gajim, KeepassXC, GoldenDict, and Zathura.
Steps to Reproduce
Steps to reproduce the behavior
Expected behavior
That applications which used to work continue working.
Actual behavior
Applications don't start.
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Applications in question start fine, as they did before.
Additional context
Any other detail that may help to understand/debug the problem
Downgrading xkeyboard-config to 2.44, all else unchanged, lets everything run fine.
Alternatively, with xkeyboard-config 2.45 installed, adding
whitelist /usr/share/X11/xkbto any application's firejail profile results in correct starting and operation of that application.Environment
uname -srm): Linux 6.15.1-arch1-2 x86_64mesa 1:24.3.3-2"): Current versions of each of applications listed above, and likely more, from official Arch Linux repositories
firejail --version):was compiled (
git rev-parse HEAD): 0.9.74.r63.g87183d605-1Checklist
/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)Log
Output of
LC_ALL=C firejail /path/to/program@aminvakil commented on GitHub (Jun 9, 2025):
Same problem with firejail 0.9.74
@oddfellow commented on GitHub (Jun 9, 2025):
xkeyboard-config changed their keymap data path to
<prefix>/<datadir>/xkeyboard-config-2and made<prefix>/<datadir>/X11/xkba symlink.fd1d8d2d4f@myrslint commented on GitHub (Jun 9, 2025):
Good finding. Thank you!
I have tried, for example,
firejail --profile=/etc/firejail/firefox.profile bashfollowed byls -R /usr/share/X11/xkb. It seems to be able to correctly traverse, list, and access the files there. Why is libxkbcommon unable to do so later on behalf of Firefox unlesswhitelist /usr/share/X11/xkbis added to Firefox's profile?@kmk3 commented on GitHub (Jun 9, 2025):
Does it work with the following in
~/.config/firejail/whitelist-usr-share-common.local?
@myrslint commented on GitHub (Jun 9, 2025):
It does. This seems to be a cleaner, more general way to fix it. Hopefully, that line can be added to
/etc/firejail/whitelist-usr-share-common.incto fix the issue globally.@reagentoo commented on GitHub (Jun 10, 2025):
Fixes Telegram launch: