Re: launchd, agents and tn2083
Re: launchd, agents and tn2083
- Subject: Re: launchd, agents and tn2083
- From: Dave Zarzycki <email@hidden>
- Date: Wed, 31 May 2006 08:46:35 -0700
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.
Stay tuned for Leopard though. :-)
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.
davez
On May 30, 2006, at 5:20 PM, John Fieber wrote:
tn2083 "Daemons and Agents" is a good read.
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?
Thanks,
-john
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden