Systemd service file (service/lan-mouse.service) uses incorrect 'daemon' argument
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.service file 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 daemon manually 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 daemon
This should be changed to use the correct flag.
ExecStart=/usr/bin/lan-mouse -d (or ExecStart=/usr/bin/lan-mouse --daemon)
After making this change locally in my ~/.config/systemd/user/lan-mouse.service file, the service starts and runs correctly.
Thanks for the great software! I use it daily
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.