Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launchd, agents and tn2083



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: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.