Re: Determining if a user is logged in from a Launchd Daemon
Re: Determining if a user is logged in from a Launchd Daemon
- Subject: Re: Determining if a user is logged in from a Launchd Daemon
- From: David Duncan <email@hidden>
- Date: Mon, 9 Feb 2009 11:20:25 -0800
On Feb 6, 2009, at 1:14 PM, Tom Fortmann wrote:
Is there a way of determining if a GUI user (ignoring remote shells
and
such) is logged in from a system daemon? It looks like the
WindowServer
process is started for a user session, but I'm not sure scanning the
process
list is the best way of tackling this problem. Is there some Apple
Event
that can be sent to determine this? Please let me know if anyone
has any
ideas on how to do this.
I highly recommend reading TechNote 2083 Daemons and Agents <http://developer.apple.com/technotes/tn2005/tn2083.html
>
A good solution would be to have an agent that launches when a user
logs in that checks in and out with the daemon.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden