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: "Tom Fortmann" <email@hidden>
- Date: Mon, 9 Feb 2009 14:13:15 -0600
Thank you to everyone that responded.
After reading through the Technical Q&A 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 daemons, but this particular situation just
didn't warrant the extra overhead. So, I decided to keep it simple (KISS)
and just do a quick loop with the getutxent function.
I also looked at SCDynamicStoreCopyConsoleUser (which is the simplest way to
do this) but QA1133 states "...likely that they will be formally deprecated
in a future version of Mac OS X", where as the utmpx API is new to 10.5
which implies a potentially longer life.
Thanks again,
Tom
_______________________________________________
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