MacOS launchd failed to run
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?
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)
alternatively you shoud be able to set $XDG_CONFIG_HOME to your ~/.config/ directory
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:
Could paste the full log here?