Re: [launchd-dev] Starting Agents in specific GUI sessions

2013-08-16 Thread NuSkooler
Thanks for the reply -- Our product is a Parental Controls product. The kernel module is responsible for traffic capture that, if it's interesting is then proxied to/from the user space (running as root on *nix, system on Windows, etc.) daemon. The daemon in turn occasionally needs to display UI t

Re: [launchd-dev] Starting Agents in specific GUI sessions

2013-08-16 Thread Jerry Krinock
On 2013 Aug 16, at 08:33, NuSkooler wrote: > … daemon … occasionally needs to display UI to users … more than just > notifications I would say that you should write a little app (.app) to do that, and your daemon should launch it as needed. If this is for Mac OS X 10.7 or later, you should

Re: [launchd-dev] Starting Agents in specific GUI sessions

2013-08-16 Thread Quinn "The Eskimo!"
On 16 Aug 2013, at 17:17, Jerry Krinock wrote: > I would say that you should write a little app (.app) to do that, and your > daemon should launch it as needed. Please don't have your daemon launch an app; that's an exercise fraught with compatibility liability. The most straightforward solu

Re: [launchd-dev] Starting Agents in specific GUI sessions

2013-08-16 Thread NuSkooler
Thanks again for your replies -- Maybe I didn't describe this well enough: - The daemon is non-graphical of course and runs with or without a login session as root. - I *do* have GUI applications (the "agents") that are to show UI. As mentioned, the "backup plan" is to use the plist system where

Re: [launchd-dev] Starting Agents in specific GUI sessions

2013-08-16 Thread Shawn Erickson
The supported and correct way is to use a Launch Agent for what you are attempting. What you do on Windows shouldn't be applied directly on the Mac for technical and security model reasons. -Shawn On Aug 16, 2013, at 9:44 AM, NuSkooler wrote: > Thanks again for your replies -- > > Maybe I

Re: [launchd-dev] Starting Agents in specific GUI sessions

2013-08-16 Thread Jerry Krinock
On Aug 16, 2013, at 9:44 AM, NuSkooler wrote: > I *do* have GUI applications (the "agents") I'm sure that part of the trouble here is the ambiguity which has been baked in to the documentation through history. The word "agent" in particular is a frequent sower of confusion.