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