shtirlic / yubikeylockd

Simple daemon for locking and unlocking macOS with Yubikey
MIT License
102 stars 19 forks source link

start screensaver instead of put display to sleep #10

Open martinorob opened 4 years ago

martinorob commented 4 years ago

Hi, may you help me to recompile your great work to start screensaver (and lock the Mac) instead of put display to sleep? (I have a fantastic screensaver https://github.com/JohnCoates/Aerial)

I've tried to comment line from 47 to 51 and add

system("sudo -u myuser /System/Library/CoreServices/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine");

but it start a screensaver as root (I think because is the default screensaver and than I can't login anymore).

Thank you!! 😊