Re: AXIsProcessTrusted / AXMakeProcessTrusted
Re: AXIsProcessTrusted / AXMakeProcessTrusted
- Subject: Re: AXIsProcessTrusted / AXMakeProcessTrusted
- From: Guy English <email@hidden>
- Date: Sat, 14 May 2005 20:15:08 -0400
Hi again,
We'll I've implemented the AXMakeProcessTrusted thing through a
setuid helper tool just like the AuthSample does. My issue now is that
I run my helper fine but when I come back to my main application
AXIsProcessTrusted still isn't true. I even tried waiting for some
time to see if it was something that'd take a minute to kick in. If I
quit my app and re-run it then it *is* trusted - leading me to believe
one can't call AXMakeProcessTrusted on a running app and have it
"promoted" to trusted status.
Now I can come up with work arounds, most of them ugly, but is
this the expected behavior? And if not does anyone have a guess as to
why it's doing this?
Thanks for any help,
Guy
On 5/14/05, Guy English <email@hidden> wrote:
> Great! Thanks for the help!
>
> Guy
>
> > > AXMakeProcessTrusted is permanent. The basic idea would be to:
> > >
> > > if (! AXAPIEnabled() && ! AXIsProcessTrusted())
> > > {
> > > // as root do
> > > AXMakeProcessTrusted (path_to_exe);
> > > }
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden