lan-mouse icon indicating copy to clipboard operation
lan-mouse copied to clipboard

[KDE Plasma] lan-mouse keeps prompting for Input Capture permission

Open hoshinolina opened this issue 4 months ago • 4 comments

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?

hoshinolina avatar Aug 04 '25 07:08 hoshinolina

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.

nbolton avatar Aug 04 '25 08:08 nbolton

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

JonasVerhofste avatar Aug 29 '25 23:08 JonasVerhofste

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

nbolton avatar Aug 30 '25 09:08 nbolton

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.

hoshinolina avatar Oct 15 '25 08:10 hoshinolina