• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Determining if a user is logged in from a Launchd Daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Determining if a user is logged in from a Launchd Daemon (From: "Tom Fortmann" <email@hidden>)
 >Re: Determining if a user is logged in from a Launchd Daemon (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Question regarding nullified relationship objects
  • Next by Date: re: Question regarding nullified relationship objects
  • Previous by thread: Re: Determining if a user is logged in from a Launchd Daemon
  • Next by thread: Animated toolbar
  • Index(es):
    • Date
    • Thread