mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3668] Some gui applications do not accept keyboard input if host X11 DISPLAY env variable is not 0 #2308
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#2308
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 @Stephen-Seo on GitHub (Oct 14, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3668
Bug and expected behavior
If the current host X11 session is not display 0 (when the "DISPLAY" env variable is not set to ":0"), some gui applications that are running within firejail do not accept keyboard input. If X11 is running with DISPLAY id 0, then things work as expected.
No profile and disabling firejail
firejail --noprofile /path/to/programin a terminal?Nothing changes for the same applications, they still do not accept keyboard input.
which <program>orfirejail --listwhile the sandbox is running)?Running the program without firejail works as expected.
Reproduce
Steps to reproduce the behavior:
startx -- :1firejail chromiumorfirejail firefoxor
firejail vivaldi-stableEnvironment
lsb_release -a,screenfetchorcat /etc/os-release)ArchLinux x86_64
firejail --version) exclusive or used git commit (git rev-parse HEAD)firejail version 0.9.62.4
Additional context
Some other gui applications accept keyboard input (such as alacritty, xterm,
kitty, kid3-qt, gimp, audacity), and some do not (such as gnucash, vivaldi,
firefox, chromium) when the DISPLAY env is not 0.
Checklist
--profile=PROFILENAMEis used to set the right profile.debug output
EDIT: I forgot to mention this does occur in the case where there are multiple Linux X11 sessions on the same computer. The first will have DISPLAY set to ":0", and the latter session will have a different id. It is in this situation where this problem can occur.