mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 22:01:59 -06:00
[GH-ISSUE #286] Systemd service file (service/lan-mouse.service) uses incorrect 'daemon' argument #142
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#142
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 @ChuckWheat on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/286
Hi, I was following the instructions in the README under the "Daemon Mode" section to set up the systemd user service on Arch Linux (CachyOS).
I copied the
service/lan-mouse.servicefile to~/.config/systemd/user/as instructed. When enabling and starting the service (systemctl --user enable --now lan-mouse.service), it immediately failed with Result: exit-code and status=2.Running
/usr/bin/lan-mouse daemonmanually from the terminal confirmed the error:error: unexpected argument 'daemon' found. Checking the help output (lan-mouse --help) shows that daemon is not a subcommand, but an option flag (-d or --daemon).The current ExecStart line in service/lan-mouse.service is:
ExecStart=/usr/bin/lan-mouse daemonThis should be changed to use the correct flag.
ExecStart=/usr/bin/lan-mouse -d(orExecStart=/usr/bin/lan-mouse --daemon)After making this change locally in my
~/.config/systemd/user/lan-mouse.servicefile, the service starts and runs correctly.Thanks for the great software! I use it daily
@feschber commented on GitHub (Apr 4, 2025):
This is actually intentional because I changed the way the subcommand works in the latest version.
For now you will need to patch it (the way you did) or take the file from an older revision.