mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #265] MacOS launchd failed to run #134
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#134
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 @robotJie on GitHub (Feb 16, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/265
OS: MacOS
Everything works as expected when I run lan-mouse directly in a shell/terminal.
However, I want lan-mouse to start automatically at system boot. So, I created a .plist file in /Library/LaunchDaemons and loaded/enabled it. Unfortunately, the program is failing to run as a LaunchDaemon.
The error log is shown below (I've already set LAN_MOUSE_DEBUG_LEVEL=debug in the .plist file,but nothing different):
I initially suspected a config environment issue. But even after explicitly specifying the config file path, the problem remains.
Any ideas on what might be causing this?
@feschber commented on GitHub (Feb 16, 2025):
Looks like the
$HOMEenvironment variable is not set, so it does not know where to look for the config file.Can you try settings that variable? (you seem to know how to do that)
@feschber commented on GitHub (Feb 16, 2025):
alternatively you shoud be able to set
$XDG_CONFIG_HOMEto your~/.config/directory@robotJie commented on GitHub (Feb 17, 2025):
I tried explicitly specifying the config file path using the -c option. Additionally, I attempted setting environment variables, but neither of these methods resolved the issue
The .plist file is shown below:
@feschber commented on GitHub (Feb 18, 2025):
Could paste the full log here?