Re: postinstall scripts not executing
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Gv6qwScl9rckpiziOEYlybMvFedKYn5BXlTM1RzD2so=; b=Go3FOcvb3t/FQg7NaZZLGGttNK/QD7BN4I6BEEfJ3YnpJ54k8+ltEcKmi9DUtXk0UU VkryH3BSjbPpTpLQ9V/bHy1LqeYFv1mqEu9lcekWr5hw012mVicW94PPciqh82bAX9xI vLsLICYdOQDXD7uK3NGvLyXHhvH3Op7IXHA1g= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Prpa0FYFriQmDqtlIuFgqdcReFlnGUZ6loI3I1/M9p3gvKHYTrp0D4Z8Ey9/q422jP iqD3t35h2da6caBGthuK4qWhJ5D3eclurXgvElMtwwdB72iKgq/iElusrVVuYkz+9Ulg +1cjU3xFsFMXelnxPviam7RusGJaNk3yttHfc= On Aug 18, 2008, at 7:51 AM, Nigel Kersten wrote: -- Karl Kuehn larkost@softhome.net _______________________________________________ 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... LoginHooks are a method that should really only be used in packages for installations where you have control over all the clients who will install your package. If you don't have this control, you should be using a LoginItem (esp now we have a sanctioned method for programmatically adding them) or a LaunchAgent (if you're targeting 10.5 and thus they actually work. Mostly.) Sure, LaunchAgents should be able to cover most of the functionality of LoginHooks, but LoginHooks do run earlier, and have some advantages such as the easy access via $1 of the user who is logging in. To make a small counter-point: LaunchAgents run in the context of the user, so if you need to know the name of the user you just execute `/ usr/bin/whoami`. And most of the things you would do that for are moot since you are already executing as the proper user (~ just works). But there are real advantages to loginhooks as you say (run as root, and run early so you can do things like mount or fiddle with home- directories). I'm not sure what Scott means by a non-system wide LoginHooks. There's no such thing? All LoginHooks run for all users if LoginHooks have been enabled. You can enable MCX login hooks (and have multiple of them), and those will only run for the user/group/computer/computergroup for which they are set. There seems to be a lot of confusion around the interweb about the difference between LoginHooks, LoginItems and LaunchAgents.... Any thoughts on where there might be a good place to put a wiki page about this that a number of us can fiddle with to get right? It is annoying that this information is so scattered. This email sent to site_archiver@lists.apple.com
participants (1)
-
Karl Kuehn