I need to block the possibility for a single user to change the desktop background, or at least to make it possible only by inserting his password on OS X Lion / Mountain Lion.
I want to lock every possibility, from iPhoto to Safari…
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityOne possible solution would be to set the permissions on ~/Library/Preferences/com.apple.desktop.plist
to be read-only for the user.
Found a way to stop background changing.
/System/Library/Services/Set\ Desktop\ Picture.workflow
Change the extension. This stops right clicking a photo to set desktop picture. ~/Library/Safari
named
chflags uchg ~/Library/Preferences/com.apple.desktop.plist
, then change the desktop image in System Preferences, the image will change. But it will change back if I log in and log out. I'm looking for ways to force that reload (and thus generalize to other prefs) - the CFPreferences stuff in CoreFoundation looks promising, but nothing quite yet.defaults read com.apple.desktop Background
, but that has a few nested dictionaries. defaults isn't equipped to parse them, and I don't want to count on Plist Buddy being available. Are you getting the info another way? If you made your response the Answer to this question, I imagine it'd get some serious upvotes. ;)