At first, thanks for your answer! On 16 déc, 06:01, Peter Hosey <[email protected]> wrote: > On Dec 15, 2009, at 13:53:38, Frederic wrote: > > > I wanted the daemon to notify the user (the one that configured it), > > if logged in, when some works are done. > > The question is how many processes of your daemon will exist if > multiple users are logged in the GUI. > > If the answer is 1, then no, you cannot use Growl, as there is no such > thing as “_the_ user”. >
Yes, there is just one instance, it's a daemon launched from Library/ LaunchDaemons. In fact, it's even launched as root before anybody has a chance to log in. But for the daemon, exists a particular user, it's the one (or the last one) that installed it, and it's this specific user that it wants to inform. > If the answer is “as many as there are users logged in on the GUI”, > then you should be able to use Growl. > > I suspect that the answer is 1. I suspect that, (if setuid with the user ID), I could launch an AppleScript on his behalf, and send Growl notifications, but it seems a little bit like a roundabout way Frederic -- You received this message because you are subscribed to the Google Groups "Growl Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/growldiscuss?hl=en.
