Re: Problems with Launchd Daemon

2008-04-29 Thread Kyle Sluder
On Tue, Apr 29, 2008 at 3:37 AM, JanakiRam <[EMAIL PROTECTED]> wrote: > Is there any way i can my application trusted to make my daemon work ? Again, read the documentation. The message you are seeing is generated because you are acting in defiance of the rules for daemons on Mac OS X, which I an

Re: Problems with Launchd Daemon

2008-04-29 Thread JanakiRam
Hi All, >From the error log , it looks like my app is not trusted , hence its unable to connect to Windows server before login. Is there any way i can my application trusted to make my daemon work ? *: 3891612: (CGSLookupServerRootPort) Untrusted apps are not allowed to connect to or launch Windo

Re: Problems with Launchd Daemon

2008-04-29 Thread Kyle Sluder
On Tue, Apr 29, 2008 at 2:20 AM, JanakiRam <[EMAIL PROTECTED]> wrote: > Will this work on 10.4 as well as 10.5 ? Yes, as long as you use a login item for the agent. Per-user launchd agents are broken on 10.4. Login items work just fine. IIRC, to create a login item you send an Apple Event to th

Re: Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
Will this work on 10.4 as well as 10.5 ? JanakiRam. On Tue, Apr 29, 2008 at 10:35 AM, Kyle Sluder < [EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote: > On Tue, Apr 29, 2008 at 12:52 AM, JanakiRam <[EMAIL PROTECTED]> > wrote: > > Dave, > > > > Thanks for the initial response. > > > > My Daemon will

Re: Problems with Launchd Daemon

2008-04-28 Thread Bill Bumgarner
On Apr 28, 2008, at 11:12 PM, JanakiRam wrote: My daemon should run in log-off mode as well , hence starting with root previlages. UI is required only if the user has been logged-in. In general, privilege escalation and -- much harder if not impossible -- de-escalation is an exceedingly dif

Re: Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
My daemon should run in log-off mode as well , hence starting with root previlages. UI is required only if the user has been logged-in. JanakiRam. On Tue, Apr 29, 2008 at 10:46 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 28 Apr '08, at 9:52 PM, JanakiRam wrote: > > My Daemon will perform a

Re: Problems with Launchd Daemon

2008-04-28 Thread Jens Alfke
On 28 Apr '08, at 9:52 PM, JanakiRam wrote: My Daemon will perform activity using Foundation Kit API. While it starts the activity , i am opening the Appkit Window and updating the progress. If it only performs activity while a user is logged in, does it really need to run as root? In

Re: Problems with Launchd Daemon

2008-04-28 Thread Kyle Sluder
On Tue, Apr 29, 2008 at 12:52 AM, JanakiRam <[EMAIL PROTECTED]> wrote: > 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 th

Re: Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
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

Re: Problems with Launchd Daemon

2008-04-28 Thread John Clayton
Hi All, It can be done, with caveats. For an example, heres a developer example showing how a banner can be displayed on login, and that links with Cocoa.framework: /Developer/Examples/Security/bannersample However, caveat 1: This is actually an Authorization Plugin, and as such

Re: Problems with Launchd Daemon

2008-04-28 Thread Dave Camp
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 s

Re: Problems with Launchd Daemon

2008-04-28 Thread Michael Vannorsdel
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 load

Re: Problems with Launchd Daemon

2008-04-28 Thread Nick Zitzmann
On Apr 28, 2008, at 1:00 PM, JanakiRam wrote: *_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