Prevent iCloud popup on first launch

Mbentley777
Contributor

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.

5 REPLIES 5

Chris
Valued Contributor

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

Mbentley777
Contributor

Chris- how did you figure this out? FSEventer?

Chris
Valued Contributor

It's on the mailing list ;)

Mbentley777
Contributor

Ah...embarrassed for not having checked first. Thanks very much!

rtrouton
Release Candidate Programs Tester

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