[GH-ISSUE #265] MacOS launchd failed to run #134

Open
opened 2026-05-05 22:10:56 -06:00 by gitea-mirror · 4 comments
Owner

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):

Image

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?

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): ![Image](https://github.com/user-attachments/assets/27cacad0-0073-4f8e-aa13-3f91d5d09c23) 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?
Author
Owner

@feschber commented on GitHub (Feb 16, 2025):

Looks like the $HOME environment 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)

<!-- gh-comment-id:2661454698 --> @feschber commented on GitHub (Feb 16, 2025): Looks like the `$HOME` environment 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)
Author
Owner

@feschber commented on GitHub (Feb 16, 2025):

alternatively you shoud be able to set $XDG_CONFIG_HOME to your ~/.config/ directory

<!-- gh-comment-id:2661455263 --> @feschber commented on GitHub (Feb 16, 2025): alternatively you shoud be able to set `$XDG_CONFIG_HOME` to your `~/.config/` directory
Author
Owner

@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:

Image

<!-- gh-comment-id:2661749168 --> @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: ![Image](https://github.com/user-attachments/assets/1ef38e47-0f4d-4178-b1fb-ba6cf0da7ad7)
Author
Owner

@feschber commented on GitHub (Feb 18, 2025):

Could paste the full log here?

<!-- gh-comment-id:2665932496 --> @feschber commented on GitHub (Feb 18, 2025): Could paste the full log here?
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#134
No description provided.