[launchd-dev] launchd.plist & SMJobBless

Quinn "The Eskimo!" eskimo1 at apple.com
Fri Nov 4 06:19:17 PDT 2011


On 3 Nov 2011, at 11:54, Jérome Laurens wrote:

> For SMJobBless, we seem to have no hand on the plist, except for 
> the Label key.
> Every other key seems to be ignored by SMJobBless.

What makes you say that?  AFAIK SMJobBless will copy across all the keys except the Label and ProgramArguments.  Here's what the header doc says:

    The helper tool must have an embedded launchd plist. The only
    required key in this plist is the Label key. When the launchd
    plist is extracted and written to disk, the key for
    ProgramArguments will be set to an array of 1 element pointing to
    a standard location. You cannot specify your own program
    arguments, so do not rely on custom command line arguments being
    passed to your tool. Pass any parameters via IPC.

Note that the only /required/ key is the Label key, but that doesn't mean that the only /supported/ key is the Label key.

Share and Enjoy
--
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