[GH-ISSUE #5100] gedit: keyboard no longer works (ibus) #2880

Open
opened 2026-05-05 09:32:22 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @jose1711 on GitHub (Apr 10, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5100

Description

Keyboard input is no longer working in gedit.

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash LC_ALL=C firejail gedit
  2. Try to type anything

Expected behavior

Letters appear on the screen.

Actual behavior

What actually happened

Nothing changes

What changed calling LC_ALL=C firejail --noprofile /path/to/program in a terminal?

Same behaviour as above.

Additional context

It used to work in the past. Seems related to system update.

Environment

  • Linux distribution and version: Arch Linux x86_64
  • Firejail version (firejail --version): 0.9.69
  • If you use a development version of firejail, also the commit from which it was compiled: r8330.edbecfb67-1

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)
Originally created by @jose1711 on GitHub (Apr 10, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5100 ### Description Keyboard input is no longer working in `gedit`. ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Run in bash `LC_ALL=C firejail gedit` 2. Try to type anything ### Expected behavior Letters appear on the screen. ### Actual behavior _What actually happened_ Nothing changes _What changed calling `LC_ALL=C firejail --noprofile /path/to/program` in a terminal?_ Same behaviour as above. ### Additional context It used to work in the past. Seems related to system update. ### Environment - Linux distribution and version: Arch Linux x86_64 - Firejail version (`firejail --version`): 0.9.69 - If you use a development version of firejail, also the commit from which it was compiled: r8330.edbecfb67-1 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages)
Author
Owner

@rusty-snake commented on GitHub (Apr 10, 2022):

Do you use IBus?

<!-- gh-comment-id:1094331701 --> @rusty-snake commented on GitHub (Apr 10, 2022): Do you use IBus?
Author
Owner

@jose1711 commented on GitHub (Apr 10, 2022):

Do you use IBus?

Hmm.. the ibus-daemon process is present so my guess is that I am using it..

<!-- gh-comment-id:1094357485 --> @jose1711 commented on GitHub (Apr 10, 2022): > Do you use IBus? Hmm.. the `ibus-daemon` process is present so my guess is that I am using it..
Author
Owner

@rusty-snake commented on GitHub (Apr 10, 2022):

But is gedit (gtk/gdk) configured to use it?

Does GTK_IM_MODULE=xim or GTK_IM_MODULE=ibus make a difference?

Do you have any special input module like typing-booster?

Does it work with noprofile.profile?

<!-- gh-comment-id:1094358330 --> @rusty-snake commented on GitHub (Apr 10, 2022): But is gedit (gtk/gdk) configured to use it? Does `GTK_IM_MODULE=xim` or `GTK_IM_MODULE=ibus` make a difference? Do you have any special input module like typing-booster? Does it work with noprofile.profile?
Author
Owner

@jose1711 commented on GitHub (Apr 11, 2022):

With GTK_IM_MODULE=xim the input works, if set to ibus it does not.

LANG=C GTK_IM_MODULE=ibus gedit
Reading profile /etc/firejail/gedit.profile
Reading profile /etc/firejail/allow-common-devel.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 73627, child pid 73628
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /home/jose/.ssh/authorized_keys2
Warning: not remounting /home/jose/.ssh/config
Blacklist violations are logged to syslog
Warning: cleaning all supplementary groups
Child process initialized in 92.12 ms

(gedit:3): dbind-WARNING **: 12:20:24.984: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: No such file or directory

(gedit:3): IBUS-WARNING **: 12:20:25.071: Unable to connect to ibus: Could not connect: Connection refused

Parent is shutting down, bye...
<!-- gh-comment-id:1094872359 --> @jose1711 commented on GitHub (Apr 11, 2022): With `GTK_IM_MODULE=xim` the input works, if set to `ibus` it does not. ``` LANG=C GTK_IM_MODULE=ibus gedit Reading profile /etc/firejail/gedit.profile Reading profile /etc/firejail/allow-common-devel.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-runuser-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 73627, child pid 73628 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: not remounting /home/jose/.ssh/authorized_keys2 Warning: not remounting /home/jose/.ssh/config Blacklist violations are logged to syslog Warning: cleaning all supplementary groups Child process initialized in 92.12 ms (gedit:3): dbind-WARNING **: 12:20:24.984: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: No such file or directory (gedit:3): IBUS-WARNING **: 12:20:25.071: Unable to connect to ibus: Could not connect: Connection refused Parent is shutting down, bye... ```
Author
Owner

@rusty-snake commented on GitHub (Apr 11, 2022):

Duplicate of #116

<!-- gh-comment-id:1095249820 --> @rusty-snake commented on GitHub (Apr 11, 2022): Duplicate of #116
Author
Owner

@rusty-snake commented on GitHub (Apr 11, 2022):

but we should really improve the documentation or add a allow-ibus.inc or an ibus yesno in firejail.config or just hardcoded the fix if possible.

<!-- gh-comment-id:1095251043 --> @rusty-snake commented on GitHub (Apr 11, 2022): but we should really improve the documentation or add a `allow-ibus.inc` or an `ibus yesno` in firejail.config or just hardcoded the fix if possible.
Author
Owner

@wellcomez commented on GitHub (Nov 15, 2022):

@rusty-snake

gedit will use ibus_address if ibus_address is set in env.
And ibus_address will be set by sandbox which implemented in env_ibus_load.
I has same error message and issue than keyboard doesn't response.
I found the ibus address listed by ss is different with address set by firejail. Then I found several files under .config/ibus/bus.
I guest maybe firejail doesn't choose right address_file.
I don't know which is right for me,

  1. then I remove them all and use firejail launch gedit again.
    Bingo keyboard works.
  2. Then I reboot system, a new address_file appears, gedit works well
<!-- gh-comment-id:1315521590 --> @wellcomez commented on GitHub (Nov 15, 2022): @rusty-snake gedit will use ibus_address if ibus_address is set in env. And ibus_address will be set by sandbox which implemented in env_ibus_load. I has same error message and issue than keyboard doesn't response. I found the ibus address listed by `ss` is different with address set by firejail. Then I found several files under .config/ibus/bus. I guest maybe firejail doesn't choose right address_file. I don't know which is right for me, 1. then I remove them all and use firejail launch gedit again. Bingo keyboard works. 2. Then I reboot system, a new address_file appears, gedit works well
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2880
No description provided.