mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3379] thunderbird: keyboard does not work: Unable to connect to ibus #2124
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#2124
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 @fabianhick on GitHub (Apr 24, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3379
Hey,
after upgrading my installation to Ubuntu 20.04 I ran into the following issues:
Describe the bug
When running Thunderbird on Ubuntu 20.04 with firejail the keyboard input is broken.
Behavior change on disabling firejail
The keyboard input works as intended
To Reproduce
Steps to reproduce the behavior:
firejail --private thunderbirdExpected behavior
Being able to input information with the keyboard.
Desktop (please complete the following information):
Additional context
This issues also appears in gedit.
@rusty-snake commented on GitHub (Apr 24, 2020):
Can you try
firejail --ignore=nodbus thunderbird.@fabianhick commented on GitHub (Apr 24, 2020):
@rusty-snake, I did try your command and the issue still persists.
@rusty-snake commented on GitHub (May 1, 2020):
I cannot reproduce this in a ubu-focal test VM with firejail-git.
@JKjakay commented on GitHub (May 1, 2020):
I have the same problem. However, I do not use --private but instead just run:
firejail thunderbird
The firejailed TB works as usual, but does not accept keyboard input. The ibus warning shows up in the console - to be exact, one time for every keypress, I think.
@fabianhick commented on GitHub (May 1, 2020):
It doesn't work for me both with and without
--private.I can confirm @JKjakay's description of the issue in regards to keypresses.
@rusty-snake commented on GitHub (May 1, 2020):
Can you try with
firejail --ignore=private-tmp --ignore=tracelog --ignore="shell none" --ignore=protocol --ignore=nogroups --ignore=noroot --ignore=machine-id. If this works, remove ignores till it breaks again.@fabianhick commented on GitHub (May 1, 2020):
Thanks for the new command, @rusty-snake.
Unfortunately the issue still persists:
@rusty-snake commented on GitHub (May 2, 2020):
Then you will need to comment every thing in thunderbird.profile and uncomment line for line to find the problematic line. (You can also uncomment a block of line and only go line for line in the block with the problematic line).
@fabianhick commented on GitHub (May 2, 2020):
I did just try it out and commenting the line containing
ignore nodbusinthunderbird.profileseems to solve the issue.The initial error message (Unable to connect to ibus) still appears, but the Events queue isn't growing too big anymore and keyboard input is working again.
@rusty-snake commented on GitHub (May 2, 2020):
So calling
firejail (--private) --nodbus thunderbirdworks?@fabianhick commented on GitHub (May 2, 2020):
Yes indeed, @rusty-snake.
But I also just noticed that the
thunderbird.profileon GitHub is different to mine from the Ubuntu Focal package...@JKjakay commented on GitHub (May 2, 2020):
Starting TB with
firejail --nodbus thunderbirdworks for me, too
@paddyredbeard commented on GitHub (May 2, 2020):
FWIW - I was having exactly the same issue with Chromium browser on a fresh upgrade to Pop!_OS 20.04 (based on Ubuntu 20.04). Per @JKjakay's comment,
firejail --nodbus chromiumresolves this for me.@ghost commented on GitHub (May 10, 2020):
I had this issue with several applications (Thunderbird, Firefox, Vivaldi, Brave, Text-Editor).
Using the --nodbus parameter helped (unless it's explicitely blocked like for Firefox, see issue https://github.com/netblue30/firejail/issues/3408). Alternatively changing the profile files also helped (commenting out all dbus related lines in the main profile file)
Running it on Ubuntu 18.04
@rusty-snake commented on GitHub (May 10, 2020):
Unfortunately we still do not know what the real reason is, or how it can be fixed. Blocking D-Bus breaks dconf and other things. It will not work with all programs.
@rusty-snake commented on GitHub (May 22, 2020):
@buggitheclown @paddyredbeard @JKjakay @fabianhick can you try this: https://github.com/netblue30/firejail/issues/116#issuecomment-632394043
@paddyredbeard commented on GitHub (May 22, 2020):
@rusty-snake
GTK_IM_MODULE=xim firejail chromiumworks for me.@rusty-snake commented on GitHub (May 22, 2020):
ok, I'm now able to reproduce it. Ubuntu 20.04 (minimal) VM with firejail-git.
Thats are bad news, because it is broken even with
--noprofile.Knowed work arounds:
nodbus/dbus-user noneornet none, both don't work for all programsenv GTK_IM_MODULE=ximandenv QT_IM_MODULE=xim@rusty-snake commented on GitHub (May 22, 2020):
Problematic strace line (strace -f):
connect(14, {sa_family=AF_UNIX, sun_path=@"/home/ubuntu01/.cache/ibus/dbus-AyGV49uw"}, 41) = -1 ECONNREFUSED (Connection refused)Looks like ibus is rejecting the connection. Maybe because of the PID-namespace?
@ghost commented on GitHub (May 23, 2020):
@rusty-snake
That workaround you linked doesn't work for me. I tried creating the signal-desktop file in my home directory and using the console command like @paddyredbeard
So far using --noprofile --nodbus worked with all programs that had the issue for me.
EDIT: I changed my user name so don't be surprised why a new name showed up in the convo
@rusty-snake commented on GitHub (May 23, 2020):
electron doesn't use gtk, maybe
QT_IM_MODULE=ximworks.@wellcomez commented on GitHub (Oct 17, 2022):
@rusty-snake for my case, I think this caused by multi ibus configuration file under ~/.config/ibus/bus/ and one of them contains wrong socket address.
@rusty-snake commented on GitHub (Oct 17, 2022):
What do you mean with "wrong address"?
@wellcomez commented on GitHub (Oct 20, 2022):
@wellcomez commented on GitHub (Nov 16, 2022):
Maybe it looks right because its filename is confirmed with naming rule, but really it doesn't point to living unix socket.
After i remove all these files ,keyboard works. After reboot again, new ibus_address file appears, then try gedit again, it also works.
I use ss i can find ibus_address used by system is different with ibus_address which is set to sandbox by firejail.
@vaindru commented on GitHub (Jan 8, 2024):
This saved me! Firefox didn't recognize keyboard input and also a friend had another editor software with same problem and it helped too. Thanks!:)
@wazaberry commented on GitHub (Aug 4, 2024):
Thanks a lot Welcomez... deleting .config/ibus/bus did the trick and the keyboard now works in Firefox :)