Closed AlanGriffiths closed 2 years ago
This isn't just xfce4-terminal - I tried a simplified snap with gedit and that too fails to work with the OSK. So there's something GTK related going on.
(As a sanity check, wpe-webkit-mir-kiosk does work with the OSK)
Useful data point: the store "gedit" snap does work with OSK.
...
And the magic is somewhere in extensions: [gnome-3-38]
I poked at it more and what I came up with is:
gtk-query-immodules-3.0
with GTK_PATH
set to the GTK's library directory (ex /usr/local/lib/x86_64-linux-gnu/gtk-3.0/
) and redirect it's output to any file (typically named immodules.cache
)GTK_IM_MODULE_FILE
be the path to the immodules.cache
fileimmodules.cache
(which are conveniently text) need to refer to the correct locations. That means you can either ship gtk-query-immodules-3.0
and run it on the user's machine, bind mount the im modules directory in the snap so it's in the same place at build time and runtime or patch immodules.cache
Thanks
This example uses xfce4-terminal to show the colossal-cave text adventure.
I was expecting this to "just work" with Ubuntu Frame OSK, as
xfce4-terminal
works with the OSK when run outside a snap environment. But the OSK doesn't show.I shared these logs with @wmww who said:
wayland-native.log wayland-snapped.log
However, this seems to be entirely down to the snap environment: after copying the environment variables from the snap and running the snapped binaries directly the OSK appears. Running
devmode
doesn't help: the snapped version still doesn't show the OSK.(That probably only leaves something in the
layout
that differs. But what...)