Talk About Network

Google





Mac > Mac Programmer Help > Re: Pre login
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 3689 of 3889
Post > Topic >>

Re: Pre login

by Gregory Weston <uce@[EMAIL PROTECTED] > Apr 3, 2008 at 07:51 AM

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
 




 5 Posts in Topic:
Pre login
p2 <pradip.patel@[EMAI  2008-04-03 00:27:06 
Re: Pre login
Gregory Weston <uce@[E  2008-04-03 10:23:19 
Re: Pre login
p2 <pradip.patel@[EMAI  2008-04-03 04:38:37 
Re: Pre login
Gregory Weston <uce@[E  2008-04-03 07:51:19 
Re: Pre login
p2 <pradip.patel@[EMAI  2008-04-03 04:40:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 18:50:29 PST 2009.