nosleep icon indicating copy to clipboard operation
nosleep copied to clipboard

NoSleep Utility Does Not Start on System Startup (Preference Does Not Persist)

Open tree-frog opened this issue 5 years ago • 1 comments

There is a logic error in the program that prevents NoSleep from starting on system startup when the directory "~/Library/LaunchAgents" does not exist. It appears that the NoSleep launch agent is not created if this folder does not exist (as is the case on a new installation of MacOS). This results in the preference not sticking.

This can be manually fixed by running the following command: mkdir ~/Library/LaunchAgents

I noticed this issue on a new installation of MacOS 10.14.3 (where NoSleep otherwise works flawlessly!), though I'm sure it exists on other versions of MacOS. NoSleep should be updated to create the user LaunchAgents folder if it does not exist rather than fail silently.

Thanks for the great work!

tree-frog avatar Feb 24 '19 04:02 tree-frog

Please Fix

sdykae avatar Jul 18 '19 21:07 sdykae