FROM : Michael Vannorsdel
DATE : Mon Apr 28 21:22:35 2008
Unfortunately launch daemons can't be Cocoa applications or
applications that rely on the window server in general (and other
higher APIs). You'll be better off launching it as a user login item
(accounts prefs). These are launched in the user's context and after
the window server is loaded.
On Apr 28, 2008, at 1: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.
DATE : Mon Apr 28 21:22:35 2008
Unfortunately launch daemons can't be Cocoa applications or
applications that rely on the window server in general (and other
higher APIs). You'll be better off launching it as a user login item
(accounts prefs). These are launched in the user's context and after
the window server is loaded.
On Apr 28, 2008, at 1: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.
| Related mails | Author | Date |
|---|---|---|
| JanakiRam | Apr 28, 21:00 | |
| Nick Zitzmann | Apr 28, 21:10 | |
| Michael Vannorsdel | Apr 28, 21:22 | |
| Dave Camp | Apr 28, 21:26 | |
| John Clayton | Apr 28, 22:49 | |
| JanakiRam | Apr 29, 06:52 | |
| Kyle Sluder | Apr 29, 07:05 | |
| Jens Alfke | Apr 29, 07:16 | |
| JanakiRam | Apr 29, 08:12 | |
| Bill Bumgarner | Apr 29, 08:15 | |
| JanakiRam | Apr 29, 08:20 | |
| Kyle Sluder | Apr 29, 09:32 | |
| JanakiRam | Apr 29, 09:37 | |
| Kyle Sluder | Apr 29, 10:16 |






Cocoa mail archive

