Re: Strange behaviour with defaults read in install script
Re: Strange behaviour with defaults read in install script
- Subject: Re: Strange behaviour with defaults read in install script
- From: Karl Kuehn <email@hidden>
- Date: Mon, 9 Mar 2009 10:00:25 -0700
On Mar 9, 2009, at 9:45 AM, Glover,David wrote:
I’m using a preinstall script to read the available languages on the
machine as follows;
defaults read –g AppleLanguages
This is fine via a Terminal command, or when running the script by
Terminal, but when the script is run by Installer, the following is
outputted;
“The domain/default pair of (kCFPreferencesAnyApplication,
AppleLanguages) does not exist”
Has anybody come across this unusual behaviour before? Why has
Installer decided to start lying to me?
Installer isn't lying to you, it is telling you that for the user
that you are running at at that point the list of default languages is
not. This is true for any non-GUI user (try running this with sudo for
instance). This command is essentially calling:
defaults read .GlobalPreferences AppleLanguages
And many users do not have a file at ~username/.GlobalPreferences.plist
What are you really trying to accomplish here? And are you sure that
the installer is the appropriate place for this?
--
Karl Kuehn
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden