Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: Ryan McGann <email@hidden>
- Date: Sat, 1 Nov 2003 12:14:56 -0800
The problem with quitting the daemon between logins and logouts is
that the cost of establishing and configuring the networking is
rather high, not to mention the inconvenience of having to shut down
any executing tasks and transport them to another machine, etc.
Don't mix up startup items and login items. Startup items are executed
by root in the root context, login items are executed by the user in
the login context. Startup items are killed when the system is shut
down, login items when the user logs out.
Your daemon should of course be a startup item - ie. not affected by
users logging in and out. Any user level applications you might have
can connect to and communicate with the daemon when a user is logged
in.
This is what I thought... isn't this what the original poster was
trying to do too; run a startup item, not a login item? I thought the
original replier said this wouldn't work. Somewhere I've gotten
something mixed up, evidently...
No I think the original poster also mentioned he wanted to display a
window when the login window is shown:
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?
He can write a StartupItem, which don't ever die except when the
computer is restarted, but they could not show UI using Carbon/AppKit
(you can show some minimal UI using CFUserNotification).
Ryan
_______________________________________________
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.