extending loginwindow
extending loginwindow
- Subject: extending loginwindow
- From: "Mateusz Łapsa-Malawski" <email@hidden>
- Date: Tue, 5 Aug 2008 01:08:17 +0200
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.
Am I doing something wrong or there is some other way to force
loginwindow to cancel login process.
Regards,
Mateusz Łapsa-Malawski
http://www.linkedin.com/in/lapsamalawski
_______________________________________________
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