Re: Detecting login/logout?
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.