site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com Stay tuned for Leopard though. :-) davez On May 30, 2006, at 5:20 PM, John Fieber wrote: tn2083 "Daemons and Agents" is a good read. Thanks, -john _______________________________________________ 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/zarzycki%40apple.com _______________________________________________ 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... You're mostly falling victim to a bug when it comes to the relationship between launchd and sessions. Please let it suffice for me to say that LaunchAgents don't work as advertised in Tiger. In the mean time, can you elaborate on what you're trying to do? Hopefully we can recommend an alternative solution in the mean time. Something isn't quite adding up though. Early on in the note: "Agents are useful because they can do things that daemons can't, like connect to the window server". But later on in Figure 5 (a decision tree for selecting an agent launch method) is a different story where by global login items (/Library/Preferences/ loginwindow.plist) are the only option for launching an agent for every user on login that can talk to the window server. But earlier in the document, that method is described as unsupported. launchd will work, but it also attempts to launch agents for ssh logins, which fails because the window server is inaccessible. (Of course, the agent could be fixed to detect that and deal with it sensibly, but in this particular organizational context I don't have control over the code in the agent.) So, there appears to be no *supported* way, according to tn2083 Figure 5, to launch an agent with GUI for all users on login. Am I reading that right? Or is there some undocumented launchd.plist option to suppress attempting to launch in a non-gui (sshd) context? This email sent to zarzycki@apple.com This email sent to site_archiver@lists.apple.com