Determining if a user is logged in from a Launchd Daemon
Determining if a user is logged in from a Launchd Daemon
- Subject: Determining if a user is logged in from a Launchd Daemon
- From: "Tom Fortmann" <email@hidden>
- Date: Fri, 6 Feb 2009 15:14:42 -0600
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.
Thanks,
Tom
___________________________________
THOMAS FORTMANN
Director of Development
XCAPE SOLUTIONS, INC.
207 Crystal Grove Blvd.
Lutz, FL 33548
TEL 847 228 9831
<http://www.xcapesolutions.net> www.xcapesolutions.net
<mailto:email@hidden> email@hidden
_______________________________________________
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