mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #293] KDE + Wayland: Input capture portal failed #149
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zzzealed on GitHub (May 14, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/293
Hi.
Machine 1:
Machine 2:
I'm trying to use lan-mouse between my Machine1 and Machine2. Problem is, I can't seem to get my Machine2's inputs emulated to my Machine1. So basically, I can use my GNOME machines mouse+keyboard on both, but my KDE machine's mouse+keyboard doesn't get used on the other machine.
On KDE I get these errors:
Admittedly I'm not sure if these errors relate to the issue, but that's what I'm guessing.
The packages I have installed relating to this are:
xdg-desktop-portal,xdg-desktop-portal-wlr,xdg-desktop-portal-kdeandkdePackages.xdg-desktop-portal-kde.I also have this in my config:
Thanks for any help :)
@zzzealed commented on GitHub (May 14, 2025):
Also: I am clicking click "Share" on:
and:
@bambalamm commented on GitHub (May 15, 2025):
I confirm having the same problem since yesterday.
For me also the 'Remote control request - Portal' popups disappeared since this problem.
Both machines:
I can't get any version of lan-mouse to work. Neither the latest release 0.10.0 nor the compiled latest github pull.
Since nothing in lan-mouse changed over the past weeks it is probably caused by some recent change in KDE and/or in libei.. but I do not really understand what libei even does and what might be failing atm.
@feschber commented on GitHub (May 15, 2025):
Okay this is odd. The error indicates that input capture is not supported, but clearly, the dialog is showing up...
@bambalamm commented on GitHub (May 16, 2025):
These are my logs with the latest build.
And this is my config.toml
@bambalamm commented on GitHub (May 16, 2025):
For me things work again after restarting xdg-desktop-portal.service.
On both my systems I found that it landed on an error right after booting:
After restarting the service the error does not return and everything works fine again:
@feschber commented on GitHub (May 16, 2025):
@zzzealed could you try if rebooting fixes this for you?
@zzzealed commented on GitHub (May 16, 2025):
@feschber
I tried both rebooting my PC and restarting the
xdg-desktop-portal.service:This
Failed to ConnectToEIS-error only occurs after opening lan-mouse and pressing "Share" on the dialogues.@zzzealed commented on GitHub (May 16, 2025):
Seems to link to this old issue: https://github.com/emersion/xdg-desktop-portal-wlr/issues/193
@DrYak commented on GitHub (May 16, 2025):
@bambalamm : I have the same setup as you (OpenSuSE Tumbleweed and kde).
Culprit is this part of logs:
For some reason since the update it's not able to successfully talk to xdg-desktop-portal, cannot find the RemoteDesktop API, and falls back to X11 which:
Current work-around:
After restarting the desktop portal, on the next run of lan-mouse it correctly uses xdg-portal
@DrYak commented on GitHub (May 22, 2025):
(Sorry to everybody else for hi-jacking this thread.
@bambalamm : I build my own RPM of lan-mouse on OBS, you can find it as a community package in the software search. Once 0.11 is released I'll try to suggest it for more official inclusion).
@Zombiefleischer commented on GitHub (Jul 14, 2025):
Any updates here?
I'm using KDE + Hyprland and the workaround doesn't work for me, cause Hyprland is a special snowflake and doesn't have a libei integration yet. And since last week lan-mouse broke on me on the Hyprland side with the same error every time:
@nbolton commented on GitHub (Jul 14, 2025):
Yes,
org.freedesktop.portal.InputCaptureneeds to be implemented in Hyprland. Unfortunately, Hyprland is quite behind KDE and GNOME on this one.Does anyone know the upstream Hyprland issue link? If so, maybe we could edit OP to help others find it.
@Zombiefleischer commented on GitHub (Jul 14, 2025):
https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/252
https://github.com/hyprwm/xdg-desktop-portal-hyprland/pull/268
https://github.com/hyprwm/Hyprland/pull/7919
I think those are the three relevant links for the Hyprland integration.
It has worked since last week, where I updated my NixOS, and I think a new version of the desktop-portal or something else broke it. It has been painful to switch input/cables everytime now, and I think I'll try to roll back.
@nbolton commented on GitHub (Jul 14, 2025):
@feschber What do you think about editing OP to highlight these? I can imagine @Zombiefleischer's comment getting lost after a while.
@Zombiefleischer commented on GitHub (Jul 14, 2025):
Downgraded my Hyprland machine and lan-mouse is working again. Now I have to wait with updates until any of this is fixed 😅
@zzzealed commented on GitHub (Jul 25, 2025):
Still happening on NixOS 25.05, KDE 6.3.6