Posted on 11-28-2011 01:21 PM
Does anyone know exactly what file is created the first time the iCloud system prefs pane is opened on a new 10.7 build?
I'd like to at the very least understand what file is being written before just imaging it away.
Posted on 11-28-2011 02:05 PM
This will turn it off for new users:
sudo defaults write /System/Library/User Template/Non_localized/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
Posted on 11-29-2011 05:22 AM
Chris- how did you figure this out? FSEventer?
Posted on 11-29-2011 08:38 AM
It's on the mailing list ;)
Posted on 11-29-2011 12:50 PM
Ah...embarrassed for not having checked first. Thanks very much!
Posted on 12-01-2011 12:38 PM
The DeployStudio developers wrote this for loop in the DeployStudio rc130 ds_finalize script. You may also be able to leverage it:
#!/bin/sh
# disable iCloud and gestures demos
if [ `sw_vers -productVersion | awk -F. '{ print $2 }'` -ge 7 ]
then
for USER_TEMPLATE in "/System/Library/User Template"/*
do
defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
done
for USER_HOME in /Users/*
do
USER_UID=`basename "${USER_HOME}"`
if [ ! "${USER_UID}" = "Shared" ]
then
if [ ! -d "${USER_HOME}"/Library/Preferences ]
then
mkdir -p "${USER_HOME}"/Library/Preferences
chown "${USER_UID}" "${USER_HOME}"/Library
chown "${USER_UID}" "${USER_HOME}"/Library/Preferences
fi
if [ -d "${USER_HOME}"/Library/Preferences ]
then
defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
chown "${USER_UID}" "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant.plist
fi
fi
done
fi