I could reproduce this issue in Ubuntu impish by simply adding:

export XDG_CACHE_HOME=/tmp/mycache

to ~/.profile and relogin.

Then, as James Henstridge suggested, I tried starting it like this:

IBUS_USE_PORTAL=1 chromium

Unfortunately that did not help.

I made one observation, though, which might be useful as a workaround:
If I set the XDG_CACHE_HOME variable to "/tmp" (instead of
"/tmp/mycache"), typing within the Chromium snap, including inputting
with an IBus engine, worked as expected. Possibly the explanation is
that /tmp is used as a fallback, sort of, to deal with BSD systems.

https://github.com/ibus/ibus/blob/master/bus/server.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1890905

Title:
  Snaps cannot access IBus when $XDG_CACHE_HOME is set

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1890905/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to