[GH-ISSUE #1302] Firejail causes ibus not to work in Qt applications #888

Closed
opened 2026-05-05 07:03:05 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @kennethso168 on GitHub (May 23, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1302

I cannot switch IBus input method and enter Chinese in Qt applications such as Kate, Gwenview and Dolphin when they are run with firejail.

System setup

Kernel: 4.9.28-1-MANJARO x86_64 (64 bit gcc: 6.3.1)
Desktop: KDE Plasma 5.9.5 (Qt 5.8.0) Distro: Manjaro Linux

firejail version 0.9.46

Compile time support:
        - AppArmor support is disabled
        - AppImage support is enabled
        - bind support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - git install support is disabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled

IBus 1.5.15 with ibus-rime

.bashrc:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx

.xprofile:

export QT_IM_MODULE=ibus
export OOO_FORCE_DESKTOP="gnome"

Also, ibus is selected in "Interface > Default Input Method" in qtconfig-qt4

Results

$ firejail kate
Reading profile /etc/firejail/kate.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Warning: noroot option is not available
Parent pid 4385, child pid 4386
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 31.13 ms
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2

From syslog I saw this line (probably not related)

May 23 13:56:18 kenneth-vostro-mj firejail[4389]: blacklist violation - sandbox 4385, exe kate, syscall open64, path /proc/sys/kernel/core_pattern

Tried running without profile, ibus still not work

$ firejail --noprofile kate
Parent pid 4229, child pid 4230
Child process initialized in 24.90 ms
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2

No lines related to firejail is found in syslog.
The same also happens to Gwenview and dolphin

$ firejail --noprofile gwenview
Parent pid 4332, child pid 4333
Child process initialized in 32.71 ms
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
$ firejail --noprofile dolphin
Parent pid 4352, child pid 4353
Child process initialized in 29.63 ms
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "stash"
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
Cannot creat accessible child interface for object:  PlacesView(0x118e930)  index:  22
kf5.kio.core: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf\nError loading services.\n"
kf5.kio.core: KSambaShare: Could not find smb.conf!
kf5.kio.core: We got some errors while running 'net usershare info'
kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n"

However, the logs above is also likely not useful as the same errors are shown without firejail.
This only happens to Qt applications. I can still use ibus in Firefox, LibreOffice, etc. Thank you.

Originally created by @kennethso168 on GitHub (May 23, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1302 I cannot switch IBus input method and enter Chinese in Qt applications such as Kate, Gwenview and Dolphin when they are run with firejail. System setup ------------------ ``` Kernel: 4.9.28-1-MANJARO x86_64 (64 bit gcc: 6.3.1) Desktop: KDE Plasma 5.9.5 (Qt 5.8.0) Distro: Manjaro Linux firejail version 0.9.46 Compile time support: - AppArmor support is disabled - AppImage support is enabled - bind support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - git install support is disabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled IBus 1.5.15 with ibus-rime ``` .bashrc: ``` export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus ibus-daemon -drx ``` .xprofile: ``` export QT_IM_MODULE=ibus export OOO_FORCE_DESKTOP="gnome" ``` Also, ibus is selected in "Interface > Default Input Method" in `qtconfig-qt4` Results ------- ``` $ firejail kate Reading profile /etc/firejail/kate.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc Warning: noroot option is not available Parent pid 4385, child pid 4386 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Blacklist violations are logged to syslog Child process initialized in 31.13 ms Icon theme "ubuntu-mono-dark" not found. Icon theme "Mint-X" not found. Icon theme "elementary" not found. XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 ``` From syslog I saw this line (probably not related) ``` May 23 13:56:18 kenneth-vostro-mj firejail[4389]: blacklist violation - sandbox 4385, exe kate, syscall open64, path /proc/sys/kernel/core_pattern ``` Tried running without profile, ibus still not work ``` $ firejail --noprofile kate Parent pid 4229, child pid 4230 Child process initialized in 24.90 ms Icon theme "ubuntu-mono-dark" not found. Icon theme "Mint-X" not found. Icon theme "elementary" not found. XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 ``` No lines related to firejail is found in syslog. The same also happens to Gwenview and dolphin ``` $ firejail --noprofile gwenview Parent pid 4332, child pid 4333 Child process initialized in 32.71 ms Icon theme "ubuntu-mono-dark" not found. Icon theme "Mint-X" not found. Icon theme "elementary" not found. XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 $ firejail --noprofile dolphin Parent pid 4352, child pid 4353 Child process initialized in 29.63 ms Icon theme "ubuntu-mono-dark" not found. Icon theme "Mint-X" not found. Icon theme "elementary" not found. kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "stash" XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 Cannot creat accessible child interface for object: PlacesView(0x118e930) index: 22 kf5.kio.core: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf\nError loading services.\n" kf5.kio.core: KSambaShare: Could not find smb.conf! kf5.kio.core: We got some errors while running 'net usershare info' kf5.kio.core: "Can't load /etc/samba/smb.conf - run testparm to debug it\n" ``` However, the logs above is also likely not useful as the same errors are shown without firejail. This only happens to Qt applications. I can still use ibus in Firefox, LibreOffice, etc. Thank you.
gitea-mirror 2026-05-05 07:03:05 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@nyancat18 commented on GitHub (May 23, 2017):

@kennethso168
and

do you've issues with kdenlive or krita=

<!-- gh-comment-id:303408988 --> @nyancat18 commented on GitHub (May 23, 2017): @kennethso168 and do you've issues with kdenlive or krita=
Author
Owner

@kennethso168 commented on GitHub (May 23, 2017):

Yes ibus also not work in kdenlive or krita when run with the commands firejail --noprofile kdenlive and firejail --noprofile krita.
But as there is no default profiles for kdenlive and krita shipped with firejail, firecfg will not create a symlink so it's not affected when launched from the desktop.

<!-- gh-comment-id:303426390 --> @kennethso168 commented on GitHub (May 23, 2017): Yes ibus also not work in kdenlive or krita when run with the commands `firejail --noprofile kdenlive` and `firejail --noprofile krita`. But as there is no default profiles for kdenlive and krita shipped with firejail, firecfg will not create a symlink so it's not affected when launched from the desktop.
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 22, 2018):

Is this still an issue?

<!-- gh-comment-id:406889583 --> @chiraag-nataraj commented on GitHub (Jul 22, 2018): Is this still an issue?
Author
Owner

@kennethso168 commented on GitHub (Jul 23, 2018):

Well it's been more than a year. I am no longer actively using firejail, but I still keep firejail installed. I also switched from ibus to fcitx as the IME that I use.

I just quickly did a test by running firejail kate, and I can switch the IME and type Chinese normally in the firejail-ed kate. I really don't know why this works. Any related commits?

Configuration:

Kernel: 4.14.56-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.1.1 
Desktop: KDE Plasma 5.13.3 Distro: Manjaro Linux

firejail version 0.9.54

Compile time support:
        - AppArmor support is disabled
        - AppImage support is enabled
        - bind support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled

I did not tried other Qt programs though, but I think likely they will also work. I'm also not sure about ibus, but in my experience ibus and fcitx will experience similar issues. I think this issue may be closed for now. If an ibus user still has this problem, this issue may be reopened.

<!-- gh-comment-id:407106829 --> @kennethso168 commented on GitHub (Jul 23, 2018): Well it's been more than a year. I am no longer actively using firejail, but I still keep firejail installed. I also switched from ibus to fcitx as the IME that I use. I just quickly did a test by running `firejail kate`, and I can switch the IME and type Chinese normally in the firejail-ed kate. I really don't know why this works. Any related commits? Configuration: ``` Kernel: 4.14.56-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.1.1 Desktop: KDE Plasma 5.13.3 Distro: Manjaro Linux firejail version 0.9.54 Compile time support: - AppArmor support is disabled - AppImage support is enabled - bind support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ``` I did not tried other Qt programs though, but I think likely they will also work. I'm also not sure about ibus, but in my experience ibus and fcitx will experience similar issues. I think this issue may be closed for now. If an ibus user still has this problem, this issue may be reopened.
Author
Owner

@ghost commented on GitHub (Feb 27, 2019):

Can confirm this is still present, running git master with 18.10 (Ubuntu).

<!-- gh-comment-id:467748966 --> @ghost commented on GitHub (Feb 27, 2019): Can confirm this is still present, running git master with 18.10 (Ubuntu).
Author
Owner

@kriswme2 commented on GitHub (Mar 20, 2019):

Can confirm that ibus not working but fcitx does

I'm using Arch linux, with

firejail version 0.9.58.2

Compile time support:
        - AppArmor support is enabled
        - AppImage support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled

And it seems that nodbus breaks fcitx, so you have to disable it in your profile if you use fcitx
e.g. vim /etc/firejail/chromium-common.profile and comment nodbus for fcitx to work on chromium

<!-- gh-comment-id:474817864 --> @kriswme2 commented on GitHub (Mar 20, 2019): Can confirm that ibus not working but fcitx does I'm using Arch linux, with ``` firejail version 0.9.58.2 Compile time support: - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ``` And it seems that `nodbus` breaks fcitx, so you have to disable it in your profile if you use fcitx e.g. vim /etc/firejail/chromium-common.profile and comment `nodbus` for fcitx to work on chromium
Author
Owner

@yangwenbo99 commented on GitHub (Nov 6, 2024):

Can confirm this is still a issue on recently updated Archlinux. After some trail and errors, the minimum required settings to enable ibus is similar to this workaround:

env IBUS_USE_PORTAL=1

dbus-user filter
dbus-user.talk org.freedesktop.portal.IBus.*
ignore dbus-user none

<!-- gh-comment-id:2458580844 --> @yangwenbo99 commented on GitHub (Nov 6, 2024): Can confirm this is still a issue on recently updated Archlinux. After some trail and errors, the minimum required settings to enable ibus is similar to [this workaround](https://github.com/netblue30/firejail/issues/116#issuecomment-1007921471): ``` env IBUS_USE_PORTAL=1 dbus-user filter dbus-user.talk org.freedesktop.portal.IBus.* ignore dbus-user none ```
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#888
No description provided.