• 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: 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


  • Follow-Ups:
    • RE: Determining if a user is logged in from a Launchd Daemon
      • From: "Tom Fortmann" <email@hidden>
References: 
 >Determining if a user is logged in from a Launchd Daemon (From: "Tom Fortmann" <email@hidden>)

  • Prev by Date: Re: CGFloat and 64 Bit
  • Next by Date: Re: CGFloat and 64 Bit
  • Previous by thread: Re: Determining if a user is logged in from a Launchd Daemon
  • Next by thread: RE: Determining if a user is logged in from a Launchd Daemon
  • Index(es):
    • Date
    • Thread