Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 31 Oct 2003 20:53:22 +0100
One solution is indeed to write a StartupItems which will launch a
Daemon.
You can find in the Technote section on the Apple Web site a Technote
dealing with this.
What needs to be taken into consideration is that things have changed
with Panther and that when the LoginWindow is displayed you have 2
cases:
No user login, the SystemConfiguration API will return NULL for the
Console user name.
1 user login but login window is displayed after having logouted from
another user account, the API will return "Loginwindow" IIRC for the
Console User name.
Another "funny" thing about Panther is that you can't rely on the who
command to know who is logged.
On vendredi, octobre 31, 2003, at 06:56 PM, Steve Herman wrote:
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?
Thanks,
Steve
--
+-------------------------------------------------------+
| Steve Herman |
| Macintosh Software Development and Support |
| Lockheed Martin Information Technology NASA-ODIN |
| 102 Research Blvd, Bldg 2 |
| Madison, AL 35758 (voice) 256 319-2869 |
| mailto:email@hidden (fax) 256 319-2984 |
+-------------------------------------------------------+
_______________________________________________
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.
_______________________________________________
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.