The BOINC installer asks the user if they would like to set BOINC as their screensaver. If they answer yes, it sets it for them. Both of the following methods work under Ventura and earlier, but no longer work under MacOS 14.0 Sonoma.
Applescript:
tell application "System Events" to set current screen saver to screen saver "BOINCSaver"
Shell script: defaults -currentHost write com.apple.screensaver moduleDict -dict moduleName "BOINCSaver" path "/Library/Screen Savers/BOINCSaver.saver" type 0
The defaults method also worked under Ventura and earlier by passing the corresponding CFMutableDictionaryRef
to CFPreferencesSetValue
.
What is the way to set a screensaver for all spaces and displays under Sonoma?