I have tried to follow this question so that at login, the currently configured screensaver becomes the desktop background. Therefore, I have created the following script:
# login.sh /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &
I have then created a launch service as
~/Library/LaunchAgents/my_login_items.plist with the content
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.user.loginscript</string> <key>Program</key> <string>/path/to/login.sh</string> <key>RunAtLoad</key> <true/> </dict> </plist>
And then run
launchctl load ~/Library/LaunchAgents/my_login_items.plist.
Nothing happens, however.