• 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: postinstall scripts not executing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: postinstall scripts not executing


  • Subject: Re: postinstall scripts not executing
  • From: Scott Russell <email@hidden>
  • Date: Mon, 18 Aug 2008 08:09:12 -0400

The advantage to a kludge like this is that it is not a system-wide loginhook so sysadmins shouldn't complain. However, I think we all know the BEST answer is to write the application correctly to set prefs on first launch from an internal mechanism.

This specific question aside -- in the grander scheme of things, as we go forward, shouldn't we be dropping the idea of loginhooks in favor of LaunchAgents?

Best wishes,
Scott
--
Dr. Scott Russell

IT Support Engineer/Consultant
	Arts & Letters Computing, Distributed Support Services,
	Office of Information Technologies, University of Notre Dame
Instructor of Horn, University of Notre Dame and Saint Mary's College
Assistant Horn, South Bend Symphony Orchestra

234 Decio Hall
574-631-7021
email@hidden
http://www.nd.edu/~srussel2/




On Aug 17, 2008, at 5:51 PM, Stéphane Sudre wrote:


On Aug 17, 2008, at 7:08 PM, Scott Russell wrote:


Instead of login hooks, isn't the correct mechanism going forward a launchd item in /Library/LaunchAgents/ anyway? User-specific, runs at login ... sounds like a login hook to me. *shrug*

Can the answer be no?

LaunchAgents are only working on 10.5 and later (in 10.4 they are not working correctly at all).

Additionally:

- LaunchAgents are for repetitive tasks. Setting default preferences is a one-shot operation.

- There is no guarantee that a LaunchAgent item will be launched before your app. LoginItems can be launched before a LaunchAgent item. They can already be launched before a LaunchDaemon item.




_______________________________________________ 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: postinstall scripts not executing
      • From: "Gignac, Jason (HAS-SAT)" <email@hidden>
References: 
 >Re: postinstall scripts not executing (From: "Gignac, Jason (HAS-SAT)" <email@hidden>)
 >Re: postinstall scripts not executing (From: Nigel Kersten <email@hidden>)
 >Re: postinstall scripts not executing (From: Scott Russell <email@hidden>)

  • Prev by Date: Re: postinstall scripts not executing
  • Next by Date: Re: postinstall scripts not executing
  • Previous by thread: Re: postinstall scripts not executing
  • Next by thread: Re: postinstall scripts not executing
  • Index(es):
    • Date
    • Thread