site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 15 juin 06, at 23:14, Dave Zarzycki wrote: On Jun 14, 2006, at 10:43 AM, Alex Sheh wrote: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I have a few questions related to launch agents. I realize that there is only one launchd per user, so a GUI session and an ssh login session will not have separate launchd’s, and I’m fine with that (otherwise, I believe loginwindow plist would be recommended). I have a launch agent that I want to run whenever the user logs in via the GUI window. I noticed that I need to call system(“launchctl unload com.myCompany.myAgent.plist”) at then very end of executable myAgent, in order for my launch agent to be run again after logging out and logging back in via GUI. Otherwise my launch agent plist remains loaded and the next time I log back in, nothing happens. Is this method of unloading at the end of the executable reasonable, or is there another more standard way of doing this? I'm terribly sorry to report that LaunchAgents are for all practical purposes, busted in Tiger. I'd advise against using them until Leopard. Sorry. Stupid question, how could one do that? Since it's a .plist and I don't remember seeing a minimum OS version key, what would be the solution to prevent it from running on 10.4? This email sent to site_archiver@lists.apple.com