mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3732] firefox: cannot use fcitx IME (dbus) #2354
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#2354
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 @hugthecactus on GitHub (Nov 7, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3732
I was going to ask for help with this issue but I managed to fix it myself so I'm leaving the solution here in the hope that it will be easier for others to find.
In previous versions of firejail, the way to enable Fcitx input method (for typing in Japanese, for example) was to use
ignore nodbusbut this has recently been deprecated in favour of variousdbus-useranddbus-systemoptions. The one that seems to conflict with Fcitx isdbus-user filterinfirefox.profileso what fixed the issue for me was to add the lineignore dbus-user filterto~/.config/firejail/firefox.local(create if necessary).Hope that helps someone.
@rusty-snake commented on GitHub (Nov 7, 2020):
Does it work if you add
dbus-user.talk org.fcitx.Fcitxinstead ofignore dbus-user filter? This would be mores secure since it only allows a additional name than all session-bus.@hugthecactus commented on GitHub (Nov 7, 2020):
Just tested
dbus-user.talk org.fcitx.Fcitxand unfortunately it's not enough to get it working for me. Happy to test some more configurations though, if you have any other ideas.@rusty-snake commented on GitHub (Nov 7, 2020):
No, unfortunately I have no further ideas. But you can check
grep -i fcitx /usr/share/dbus-1/services/*andbusctl --user list | grep -iE "(fcitx|firefox)".@hugthecactus commented on GitHub (Nov 7, 2020):
Aha! That second command listed a few things, among which is
org.freedesktop.portal.Fcitx.Now my
firefox.locallooks like:dbus-user.talk org.freedesktop.portal.Fcitxand it seems to be working just fine. Thanks very much for pointing me in the right direction!
@rusty-snake commented on GitHub (Nov 7, 2020):
Summary: Depending on the dbus-policy of the profile you need to add different command to its local.
If
dbus-user none:If
dbus-user filter:I'll add it to the FAQ.
@rusty-snake commented on GitHub (Nov 8, 2020):
https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#how-can-i-enable-fcitx
@Algebro7 commented on GitHub (Jun 3, 2024):
Just a heads up, this no longer seems to work with fcitx5. I have been unable to get it working but here is the output from the
grepandbusctlcommands you provided earlier in case that's helpful:And
~/.config/firejail/firefox.localfor reference:Note I've tried both
org.fcitx.Fcitx5andorg.freedesktop.portal.Fcitx(and both at the same time), but none of the configs seem to work. Any ideas on how to fix this?@gloomDev commented on GitHub (Jun 20, 2024):
Note: I'm using NixOS so my anecdote might not apply. But figured I'd share in case.
I too was having issues getting fcitx5 to work with firejail+firefox.
After some trial and error, I was able to pinpoint the problem to
include whitelist-run-common.incfromfirefox-common.profiledbus-user.talk org.freedesktop.portal.Fcitx.*is the rule I'm using.