• 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: Detecting login/logout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting login/logout?


  • Subject: Re: Detecting login/logout?
  • From: Wade Tregaskis <email@hidden>
  • Date: Sat, 1 Nov 2003 10:47:42 +1100

I've been asked to look at the feasibility of writing a utility that needs to run _alongside_ the login dialog on OS X.

Basically I figure this process (or processes) needs to be launched via StartupItems and it needs to display it's window whenever the Mac is sitting waiting for logon, and then hide it's window whenever someone is logged on.

Can anyone point me to any hints at detecting login/logout or any other good method of knowing when the Mac's login dialog is onscreen?

It may not work, but you could try checking the owner of the loginwindow or WindowServer processes. When logged in they're owned by the logged in user... presumably at the login screen they are owned by root, or some other generic account.

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Sending objects using sockets and NSFileHandles....
  • Next by Date: Re: Detecting login/logout?
  • Previous by thread: Re: Sending objects using sockets and NSFileHandles....
  • Next by thread: Re: Detecting login/logout?
  • Index(es):
    • Date
    • Thread