Input method doesn't work within snaps (snaps within lxd container)

Hi everyone,

I am running snap within an lxd/lxc container. The container’s OS is Ubuntu 24.04.01 (see below for details). The host’s OS is Kubuntu 24.04.01.

Ibus works correctly for other (.deb-based) apps that I run directly from the container, like gedit, falkon, etc. Even the deb-version of firefox woks well.

Ibus fails to work with snap apps (like firefox, libe-office, standard-notes; see below for error messages). This means they are useless, as I cannot provide any input…

Any ideas and support would be very much appreciated!

FYI, from wthin the lxc container:

ubuntu@ub:~$ snap version
snap    2.63.1+24.04
snapd   2.63.1+24.04
series  16
ubuntu  24.04
kernel  6.8.0-41-generic
ubuntu@ub:~$ **hostnamectl**
 Static hostname: ub
       Icon name: computer-container
         Chassis: container ☐
      Machine ID: 363463668f9c46629bd1b9d19e66b5e5
         Boot ID: 0a709d02559d4a109ce801739f88a14f
  Virtualization: lxc
Operating System: Ubuntu 24.04.1 LTS              
          Kernel: Linux 6.8.0-41-generic
    Architecture: x86-64
ubuntu@ub:~$ **ibus version**
IBus 1.5.29-rc2

ubuntu@ub:~$ **standard-notes**
(standard-notes:2042): IBUS-WARNING : 10:41:49.552: Unable to connect to ibus: Could not connect: Permission denied
extServer: Server started at http://127.0.0.1:45653

(standard-notes:2042): IBUS-WARNING  10:45:10.742: Events queue growing too big, will start to drop.
ubuntu@ub:~$ **firefox**
[GFX1-]: vaapitest: ERROR
[GFX1-]: vaapitest: VA-API test failed: failed to open renderDeviceFD.

[Parent 2376, Main Thread] WARNING: Unable to connect to ibus: Could not connect: Permission denied: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:187

(firefox:2376): IBUS-WARNING : 10:53:12.336: Unable to connect to ibus: Could not connect: Permission denied
ubuntu@ub:~$ **libreoffice**
(soffice:3326): IBUS-WARNING : 10:56:39.146: Unable to connect to ibus: Could not connect: Permission denied
(soffice:3326): IBUS-WARNING : 10:57:07.873: Events queue growing too big, will start to drop.