Last active
June 7, 2024 20:59
-
-
Save tedserbinski/4bfbf0f64d78eeafc39a806a8a9ed465 to your computer and use it in GitHub Desktop.
Script to turn off “Click wallpaper to reveal desktop” setting in macOS Sonoma that can be run from Mosyle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit goes to the blog post for the command: | |
# https://derflounder.wordpress.com/2023/09/26/managing-the-click-wallpaper-to-reveal-desktop-setting-in-macos-sonoma/ | |
#!/bin/bash | |
# Get the logged-in user's username | |
loggedInUser=$(stat -f%Su /dev/console) | |
# Write the default value for the logged-in user | |
sudo -u "$loggedInUser" /usr/bin/defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment