• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
launchd, agents and tn2083
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launchd, agents and tn2083


  • Subject: launchd, agents and tn2083
  • From: John Fieber <email@hidden>
  • Date: Tue, 30 May 2006 17:20:42 -0700

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
  • Follow-Ups:
    • Re: launchd, agents and tn2083
      • From: Dave Zarzycki <email@hidden>
  • Prev by Date: Re: pthread_cancel()
  • Next by Date: DADiskEject and Resource Busy errors
  • Previous by thread: Re: CFSocketSendData silently dropping packets
  • Next by thread: Re: launchd, agents and tn2083
  • Index(es):
    • Date
    • Thread