Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS launchd failed to run #265

Open
robotJie opened this issue Feb 16, 2025 · 4 comments
Open

MacOS launchd failed to run #265

robotJie opened this issue Feb 16, 2025 · 4 comments

Comments

@robotJie
Copy link

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?

@feschber
Copy link
Owner

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)

@feschber
Copy link
Owner

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

@robotJie
Copy link
Author

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

@feschber
Copy link
Owner

Could paste the full log here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants