In article
<e616108e-27b0-43a8-a9c8-83c5102d54c3@[EMAIL PROTECTED]
>,
p2 <pradip.patel@[EMAIL PROTECTED]
> wrote:
> On Apr 3, 3:23 pm, Gregory Weston <u...@[EMAIL PROTECTED]
> wrote:
> > In article
> > <0ad907f3-4016-4d54-8256-d182d9278...@[EMAIL PROTECTED]
>,
> >
> >
> >
> >
> >
> > p2 <pradip.pa...@[EMAIL PROTECTED]
> wrote:
> > > Hi
> >
> > > I am getting following error while using quartz API
> > > CGDisplayCurrentMode(kCGDirectMainDisplay)
> > > on MacOS10.5 before Loging. it works fine on 10.4
> >
> > > 3891612: (CGSLookupServerRoot****t) Untrusted apps are not allowed to
> > > connect to or launch Window Server before login.
> > > 4/2/08 8:35:13 AM IP15Driver v2[98] kCGErrorRangeCheck :
On-demand
> > > launch of the Window Server is allowed for root user only.
> > > 4/2/08 8:35:13 AM IP15Driver v2[98] kCGErrorRangeCheck : Set
a
> > > breakpoint at CGErrorBreakpoint() to catch errors as they are
> > > returned
> >
> > > if i comment above API then no error occur.
> > > What may be the problem ?
> >
> > The problem may be that the app is still not trusted. Have you tried
> > signing the code yet?- Hide quoted text -
> >
> > - Show quoted text -
>
> Thanks
> I read on link http://developer.apple.com/technotes/tn2005/tn2083.html
> that code sign will not solve the problem
> eventhough i will try and let you know.
Did you follow the advice in that technote?
"Instead, you should fix this problem by changing your code to run in
the correct context. If you need to connect to the window server in a
pre-login context, create a pre-login launchd agent. For an example of
this, see Sample Code Project 'PreLoginAgents'."
Links in that paragraph are to:
<http://developer.apple.com/technotes/tn2005/tn2083.html#SECLAUNCHDAGENT>
and
<http://developer.apple.com/samplecode/PreLoginAgents/index.html>
That second one is sample code that alleges to do (among other things)
exactly what you seem to be wanting to do.
G


|