• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with Launchd Daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with Launchd Daemon


  • Subject: Re: Problems with Launchd Daemon
  • From: JanakiRam <email@hidden>
  • Date: Tue, 29 Apr 2008 10:22:18 +0530

Dave,

Thanks for the initial response.

My Daemon will perform activity using Foundation Kit API. While it starts
the activity , i am opening the Appkit  Window and updating the progress.

Please let us know the alternatives to perform the same activity.

JanakiRam.

On Tue, Apr 29, 2008 at 12:56 AM, Dave Camp <email@hidden> wrote:

>
> On Apr 28, 2008, at 12:00 PM, JanakiRam wrote:
>
> > I am developing a Mac cocoa application suite which has a launchd daemon
> > (
> > which is a pure cocoa application ).
> >
> > I'm able to launch the cocoa daemon using launchctl command properly.
> > But
> > when i place the plist in /Librart/LaunchDaemons ,after  system restart
> > ,
> > my system log shows the following error. And my application behavior is
> > unexpected.
> >
> > *<Warning>: 3891612: (CGSLookupServerRootPort) Untrusted apps are not
> > allowed to connect to or launch Window Server before login.*
> >
> > *<Error>: kCGErrorRangeCheck : On-demand launch of the Window Server is
> > allowed for root user only.*
> >
> > *_RegisterApplication(), FAILED TO establish the default connection to
> > the
> > WindowServer,_CGSDefaultConnection() is NULL. *
> >
> > Activity Monitor  shows my daemon  is running with root privileges.
> >
> > Can any one help me to solve this problem. Please help me to solve this
> > problem.
> >
>
> You should read <http://developer.apple.com/technotes/tn2005/tn2083.html>,
> if you have not already.
>
> You can write a daemon in Objective-C and use Foundation and other daemon
> safe frameworks, but you can't use AppKit or the Cocoa framework. It's hard
> to tell what you mean by "pure cocoa" application.
>
> Dave
>
>
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problems with Launchd Daemon
      • From: Jens Alfke <email@hidden>
    • Re: Problems with Launchd Daemon
      • From: "Kyle Sluder" <email@hidden>
References: 
 >Problems with Launchd Daemon (From: JanakiRam <email@hidden>)
 >Re: Problems with Launchd Daemon (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Debugger at odds with reality? [SOLVED]
  • Next by Date: [moderator] Re: job posting on Cocoa-dev......
  • Previous by thread: Re: Problems with Launchd Daemon
  • Next by thread: Re: Problems with Launchd Daemon
  • Index(es):
    • Date
    • Thread