lan-mouse icon indicating copy to clipboard operation
lan-mouse copied to clipboard

MacOS launchd failed to run

Open robotJie opened this issue 11 months ago • 4 comments

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?

robotJie avatar Feb 16 '25 14:02 robotJie

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 avatar Feb 16 '25 14:02 feschber

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

feschber avatar Feb 16 '25 14:02 feschber

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

robotJie avatar Feb 17 '25 01:02 robotJie

Could paste the full log here?

feschber avatar Feb 18 '25 14:02 feschber