Comment 3 for bug 1580463

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Snap blocks access to system input methods (ibus, fctix, ...)

Ok, I got it working, in addition of the previous steps you need:
- cp /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache to your snap dir
- edit it to keep only ibus/change the dirs to be "/snap/gnome-calculator/current/..."
- have the yaml define "immodules.cache: usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache" in the files section
- set "export GTK_IM_MODULE_FILE=$SNAP/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache" in the calc script
- build/install the snap
- then copy ~/.config/ibus/bus/* from your session to ~/snap/gnome-calculator/<id>/.config/ibus/bus

the bus info seems to be written by the ibus service and needed for the client to access it, unsure how that could be integrated in the snap build...