[launchd-dev] SMJobBless & secure launched helper tool

Quinn The Eskimo! eskimo1 at apple.com
Mon Oct 3 09:51:18 PDT 2011


In general I recommend that you avoid trying to check whether your helper tool is installed correctly by looking at the file system.  Rather, do an IPC to the tool and, if it works, you know that everything is hunky dory.  If you're concerned about version numbers, have an IPC request to ask the helper tool for its version.  If that fails, or returns a low version, you then know that you need to go through the installation process.

Look at how I handle this in BetterAuthorizationSample.  While it doesn't use SMJobBless (one day, one day...), the basic strategy is correct IMO.

<http://developer.apple.com/library/mac/samplecode/BetterAuthorizationSample/>

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware




More information about the launchd-dev mailing list