[GH-ISSUE #316] [KDE Plasma] lan-mouse keeps prompting for Input Capture permission #163

Open
opened 2026-05-05 22:12:14 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @hoshinolina on GitHub (Aug 4, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/316

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?

Originally created by @hoshinolina on GitHub (Aug 4, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/316 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?
Author
Owner

@nbolton commented on GitHub (Aug 4, 2025):

Yes, same problem over on Deskflow:

There are some workarounds there that you may find useful until this gets fixed upstream.

<!-- gh-comment-id:3149706672 --> @nbolton commented on GitHub (Aug 4, 2025): Yes, same problem over on Deskflow: - https://github.com/deskflow/deskflow/issues/8032 There are some [workarounds](https://github.com/deskflow/deskflow/issues/8032#issuecomment-2867520306) there that you may find useful until this gets fixed upstream.
Author
Owner

@JonasVerhofste commented on GitHub (Aug 29, 2025):

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

<!-- gh-comment-id:3238605245 --> @JonasVerhofste commented on GitHub (Aug 29, 2025): 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
Author
Owner

@nbolton commented on GitHub (Aug 30, 2025):

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:

There is a horrible and janky workaround though: https://github.com/deskflow/accept-portal-dialog

<!-- gh-comment-id:3239138051 --> @nbolton commented on GitHub (Aug 30, 2025): > 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
Author
Owner

@hoshinolina commented on GitHub (Oct 15, 2025):

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.

<!-- gh-comment-id:3405169129 --> @hoshinolina commented on GitHub (Oct 15, 2025): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#163
No description provided.