I need to run an application on X11 in Rocky Linux 9.2, on a machine that uses a touchscreen monitor in addition to a mouse and physical keyboard.
When I launch the application by touching its icon, the application window comes up together with the on-screen keyboard. The application window shifts up to make room for the keyboard. The user must dismiss the keyboard to make the window move down into the screen (otherwise, the application cannot be used as a large portion of the window moves above the edge of the screen).
Besides the minor annoyance of having to dismiss the on-screen keyboard, sometimes the window comes up in a shifted state, leaving room for the keyboard, but the keyboard does not appear. In that case, there is no keyboard to dismiss, and the window cannot be moved down without knowing the special keyboard shortcut to move the window when its title bar is not visible. This makes the application very inconvenient to use, especially since it is intended for non-technical users.
I have seen various posts showing how to configure GNOME using a browser extension and a connector to disable Caribou
, the on-screen keyboard application, but apparently, the extension or the connector is no longer compatible with the version of the GNOME shell that comes with Rocky Linux (version 40.4.0).
Apparently, Caribou shows up even when the Settings > Accessibility configuration indicates that the on-screen keyboard should be disabled. By the way, the on-screen keyboard does not seem to appear at all when running Wayland instead of X11, but the application unfortunately is not compatible with Wayland.
Can anyone tell me what the correct way to get rid of the on-screen keyboard with the latest version of GNOME on Rocky Linux/X11?
This is really an issue with recent GNOME shell versions, not exclusive to Rocky Linux.
I found an answer by kylebakerio on the Pop!_OS list of issues on GitHub, which gives clear, step-by-step instructions for manually installing the Block Caribou GNOME extension on GNOME shell version 40 (the extension is for 3.26, so it can't be installed as is). Pop!_OS, by the way, is a variant of Ubuntu.
This sure doesn't feel like the "correct" way to solve the problem, but without it, the system is pretty much unusable. I reproduce kylebakerio's instructions with a few clarifications here:
[email protected]
metadata.json
inside that folder with this:Alt-F2
and runr
to reload GNOMEI can confirm that this works perfectly with GNOME 40.4. The hope is that this will continue to work for GNOME shell versions up to 42. Maybe eventually the GNOME project will publish an extension for more recent versions.