• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange behaviour with defaults read in install script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Strange behaviour with defaults read in install script
      • From: "Glover,David" <email@hidden>
    • Re: Strange behaviour with defaults read in install script
      • From: Karl Kuehn <email@hidden>
References: 
 >Strange behaviour with defaults read in install script (From: "Glover,David" <email@hidden>)

  • Prev by Date: Strange behaviour with defaults read in install script
  • Next by Date: Re: Strange behaviour with defaults read in install script
  • Previous by thread: Strange behaviour with defaults read in install script
  • Next by thread: Re: Strange behaviour with defaults read in install script
  • Index(es):
    • Date
    • Thread