Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

macOS (10.13 High Sierra) no longer stores screensaver settings in com.apple.screensaver

So far my project had been relying on the following commands in order to tweak screensaver settings:

defaults write com.apple.screensaver askForPasswordDelay 0
defaults write com.apple.screensaver askForPassword true

As of macOS High Sierra (10.13) it seems like these settings are no longer stored in com.apple.screensaver

I'd like to avoid Apple Script to achieve such thing, any suggestions?

like image 251
Lee Andrew Avatar asked Aug 24 '17 17:08

Lee Andrew


People also ask

Where is com Apple screensaver?

The system level screen saver folder is located in the /System/ folder and any screen saver located in the directory will be included on all other user accounts on the Mac. This is also where the default screen savers are located in Mac OS, for example the Flurry or Floating Message screen savers.

Why is my Mac not showing screen saver?

Click the System Preferences menu item. Click the “Desktop & Screen Saver” icon. Click the Screen Saver tab. Select any screen saver in the column on the left.


2 Answers

Victor Vrantchan explains this in a great blog post here:

https://blog.kolide.com/screensaver-security-on-macos-10-13-is-broken-a385726e2ae2

In summary you cant query but you can mange.:

Until Apple resolves this bug, screensaver security/lock settings must be managed carefully. More specifically:

  • Enforce the profile ASAP, during initial bootstrap.
  • Make sure the askForPasswordDelay key is used in the profile.
like image 160
Mike Dodge Avatar answered Oct 02 '22 14:10

Mike Dodge


Using defaults write no longer works as of 10.13.

http://www.openradar.me/35462422

You can use this gist to accomplish it using profiles instead: https://gist.github.com/mcw0933/21b8a9e292e83c69931f5de0d2ae1883

like image 37
mcw Avatar answered Oct 02 '22 13:10

mcw