Re: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread David Duncan
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

RE: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread Tom Fortmann
Thank you to everyone that responded. After reading through the Technical QA QA1133 and Technical Note TN2083 (as well as all of your responses) I decided to use the utmpx API's for this application. I like the concept of dividing users and system functions into separate user agents and system

Determining if a user is logged in from a Launchd Daemon

2009-02-06 Thread Tom Fortmann
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

Re: Determining if a user is logged in from a Launchd Daemon

2009-02-06 Thread Jerry Krinock
On 2009 Feb 06, at 13:14, 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