[GH-ISSUE #38] Lan-mouse continues to run after exiting GUI with no way to re-open. #11

Closed
opened 2026-05-05 22:03:20 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @CupricReki on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/38

Lan-mouse continues to run in the background after closing the GUI with no taskbar icon. Adding an option to close/minimize to taskbar would be great.

Wayland
KDE Plasma 5.27.9

Originally created by @CupricReki on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/38 Lan-mouse continues to run in the background after closing the GUI with no taskbar icon. Adding an option to close/minimize to taskbar would be great. Wayland KDE Plasma 5.27.9
Author
Owner

@feschber commented on GitHub (Nov 30, 2023):

Yes, I'm aware of this.

The reason, it currently works like this is because I'm not fully decided on whether or not I should split lan-mouse into separate binaries for the Gui and the actual service that talks with the compositor for input emulation / capture. This would however add the extra step of launching the service which I want to avoid.

Ideally it should be transparent to the user such that on first startup the service is started and then keeps running until someone explicitly disables it (you may have noticed that the enable switch does not work yet). Subsequent instances would then only launch the Gui and talk to the service.

This approach would require the background desktop portal or a systemd user service. I'm still figuring out what's best here.

The infrastructure for reattaching the service to a new gui is already in place so bare with me here :)

<!-- gh-comment-id:1833272735 --> @feschber commented on GitHub (Nov 30, 2023): Yes, I'm aware of this. The reason, it currently works like this is because I'm not fully decided on whether or not I should split lan-mouse into separate binaries for the Gui and the actual service that talks with the compositor for input emulation / capture. This would however add the extra step of launching the service which I want to avoid. Ideally it should be transparent to the user such that on first startup the service is started and then keeps running until someone explicitly disables it (you may have noticed that the enable switch does not work yet). Subsequent instances would then only launch the Gui and talk to the service. This approach would require the background desktop portal or a systemd user service. I'm still figuring out what's best here. The infrastructure for reattaching the service to a new gui is already in place so bare with me here :)
Author
Owner

@CupricReki commented on GitHub (Dec 1, 2023):

Seems very logical that there should be a separate systemd service. While the service is running, there should be a taskbar icon as well which launches the GUI.

<!-- gh-comment-id:1835244254 --> @CupricReki commented on GitHub (Dec 1, 2023): Seems very logical that there should be a separate systemd service. While the service is running, there should be a taskbar icon as well which launches the GUI.
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#11
No description provided.