Re: extending loginwindow
Re: extending loginwindow
- Subject: Re: extending loginwindow
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 5 Aug 2008 01:16:03 +0200
On Aug 5, 2008, at 1:08 AM, Mateusz Łapsa-Malawski wrote:
Hi,
I have to add disclaimer message accept/decline mechanism to login
process on Leopard.
So far I've found two possible approaches.
1. /Developer/Examples/Security/bannersample
Which is pretty cool but I'd rather prefer user to authenticate
earlier before he accepts the disclaimer notice.
2. Login hook in loginwindow
Which was exactly what I was looking for but I haven't yet managed
it to work.
- what I like is that app executed in login hook has root privileges.
- moreover loginwindow waits for the app to close before it goes with
further login process - starts Finder, Dock
The only problem is that I have no idea how to refuse login.
It looks like that returning error code from app doesn't work (i.e.
int main() { return 1;}). Loginwindow ignores it.
Sending events like kAEReallyLogOut, kAEShutDown to loginwindow is
useless because loginwindow is not responding to them at boot.
A possible issue with login hook is that you can only have one.
Am I doing something wrong
like being off-topic AFAIK for this mailing-list?
or there is some other way to force loginwindow to cancel login
process.
like killing the loginwindow process?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden