Re: extending loginwindow
Re: extending loginwindow
- Subject: Re: extending loginwindow
- From: "Mateusz Łapsa-Malawski" <email@hidden>
- Date: Wed, 6 Aug 2008 02:38:55 +0200
Stephane,
Thanks for the recommendation.
simple kill(getppid(),SIGKILL) was enough
PS: I believe that installer developers are the most experienced in loginwindow manipulation ;)
Mateusz Łapsa-Malawski
http://www.linkedin.com/in/lapsamalawski
On Tue, Aug 5, 2008 at 1:16 AM, Stéphane Sudre
<email@hidden> wrote:
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