[launchd-dev] Starting Agents in specific GUI sessions

Jerry Krinock jerry at ieee.org
Mon Aug 19 06:23:24 PDT 2013


On 2013 Aug 16, at 09:24, Quinn The Eskimo! <eskimo1 at apple.com> wrote:

> The most straightforward solution to this problem is to install a tiny GUI launchd agent [1].

Thank you, Quinn.  Nuskooler's issue was that his/her daemon needed to *occasionally* display GUI.

Is the GUI launchd agent which you recommend a separate thing, in addition to the daemon, or do you mean that the daemon itself should be a GUI launchd agent?

If this GUI launchd agent is a separate thing, should it be installed at startup, or does the daemon install it when needed?

Is there any API by which a daemon, or any program for that matter, can install another agent?  In other words, is there a launchctl(2) equivalent to launchctl(1)?  If not, is that intentional?

Thanks,

Jerry


[1] https://developer.apple.com/library/mac/#technotes/tn2083/_index.html


More information about the launchd-dev mailing list