[KDE Plasma] lan-mouse keeps prompting for Input Capture permission
Every time I am idle on a client for a while, KDE re-prompts for input capture permission. Sometimes there are multiple prompts in sequence. This is quite annoying, since moving the mouse to a client leaves it stuck there until the prompt is accepted.
Is lan-mouse "closing" the input capture, and maybe KDE then re-prompts after a timeout? Maybe there is some kind of workaround that could be done on the lan-mouse side, or change of behavior so this doesn't happen?
Yes, same problem over on Deskflow:
- https://github.com/deskflow/deskflow/issues/8032
There are some workarounds there that you may find useful until this gets fixed upstream.
This is an issue in KDE, not in lan-mouse. Plasma Wayland does not persists permissions: https://bugs.kde.org/show_bug.cgi?id=502866
I got around that by setting permissions through the newish permissions api (Plasma 6.3 onward): https://wiki.archlinux.org/title/KDE#Pre-authorize_remote_control_on_Wayland
I got around that by setting permissions through the newish permissions api (Plasma 6.3 onward): https://wiki.archlinux.org/title/KDE#Pre-authorize_remote_control_on_Wayland
Unfortunately that's for Remote Control which is a different to Input Capture (this issue).
Currently there is no way to persist Input Capture permission but it is being worked on:
- https://github.com/flatpak/xdg-desktop-portal/pull/1768
- https://github.com/flatpak/xdg-desktop-portal/pull/1186
There is a horrible and janky workaround though: https://github.com/deskflow/accept-portal-dialog
I opened this because the popup keeps reappearing, not just once when lan-mouse is first started. I imagine there should be some workaround lan-mouse can do to keep this from happening. Of course, until KDE has the persistent stuff working, you'd still have to at least accept it once.