-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScreenSaverDefaults not updated in Sonoma #74
Comments
I found a workaround here: Adding a notification handler to "com.apple.screensaver.willstop" notification that executes a "exit(0)" will quit this old background instance when the screensaver is no longer used instead of keeping it running. This has the positive side effect that the 'real screen saver' will use your new changed options and not only the preview window inside System Preferences. |
ScreenSaverDefaults are not updated in macOS Sonoma when changed in System Preferences because an old instance of legacyScreenSaver with older values is still running in background and re-used when activating the screen saver again instead closing of legacyScreenSaver and starting an new instance with new values from ScreenSaverDefaults. Adding a notification handler to com.apple.screensaver.willstop with exit(0) will now quit this old background instance when the screensaver is stoped used instead of keeping it running and reuing it later.
@Waitsnake Hi, can you tell me how this can be done? I am looking for a way to do this via MDM. |
Ofc, but you could just have a look at the same files of this very commit #74 that is linked here where you asked your question. ;) inside your method:
and here is the event handler that basically only calls function "exit(0)":
|
ScreenSaverDefaults are not updated in macOS Sonoma when changed in System Preferences because an old instance of legacyScreenSaver with older values is still running in background and this instance will be reused when activating the screen saver again. Since Sonoma macOS keeps the instance running instead closing legacyScreenSaver after screen saver was finished and not starting a new instance with new values from ScreenSaverDefaults as it worked with older macOS versions.
This new behaviour of macOS leads to the negative side effect that your new options will only shown in preview window of System Preferences (they create here a 2nd instance of legacyScreenSaver that they use correctly), but will be ignored by the real screen saver until you reboot your machine or maybe log off and log in your user account on macOS.
The text was updated successfully, but these errors were encountered: