Re: LSBackgroundOnly App launches, then quits if other user at console
Re: LSBackgroundOnly App launches, then quits if other user at console
- Subject: Re: LSBackgroundOnly App launches, then quits if other user at console
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 10 Jun 2005 11:02:09 +0100
On 6/10/05, Jerry Krinock <email@hidden> wrote:
> kCGErrorRangeCheck : Window Server communications from outside of session
> allowed for root and console user only
>
> But, I say, I am LSBackgroundOnly and have not asked for any windows to be
> "served". Or have I? I only called NSApplicationMain().
Lots of other functionality requires a connection to the windowserver.
If you really want to run as a daemon, you should avoid using
high-level frameworks (ApplicationServices, AppKit, Carbon, etc) and
restrict yourself to things like Foundation, CoreFoundation,
CoreServices.
-- Finlay
_______________________________________________
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