Re: postinstall scripts not executing
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com 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 ScottRussell@nd.edu 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: Can the answer be no? Additionally: _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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? 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* LaunchAgents are only working on 10.5 and later (in 10.4 they are not working correctly at all). - 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Scott Russell