Help with permissions for KmCaster on Wayland

Hi, I’m KmCaster’s flatpak maintainer.

Just today I noticed it has this problem: https://github.com/flathub/com.whitemagicsoftware.kmcaster/issues/1

I have no idea on how to solve it. Any clues?

have you tried enabling wayland in the finish-args? The following arguments default to the wayland socket and then go to x11 if wayland is not available.

  • –socket=wayland
  • –socket=fallback-x11

In general Wayland clients only have access to their own input events not those of other applications. This is a security feature of the Wayland protocol. You can try talking to the gnome-shell / mutter maintainers, who might have an idea of how capturing other applications’ keystrokes could be accomplished with a sandbox hole.

Ah, it seems there’s no upstream support, so nothing the package can fix: https://github.com/DaveJarvis/kmcaster/issues/12