到目前为止,我的项目一直依靠以下命令来调整屏幕保护程序设置:
defaults write com.apple.screensaver askForPasswordDelay 0
defaults write com.apple.screensaver askForPassword true
从 macOS High Sierra (10.13) 开始,这些设置似乎不再存储在 com.apple.screensaver 中
我想避免使用 Apple Script 来实现这样的事情,有什么建议吗?
最佳答案
Victor Vrantchan 在一篇很棒的博客文章中解释了这一点:
https://blog.kolide.com/screensaver-security-on-macos-10-13-is-broken-a385726e2ae2
总之,你不能查询,但你可以管理。:
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.
关于macOS (10.13 High Sierra) 不再在 com.apple.screensaver 中存储屏幕保护程序设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45867402/