[launchd-dev] Replacements for deprecated SMJobSubmit and SMJobRemove
Graham Miln
graham.miln at gmail.com
Tue Oct 18 08:32:59 PDT 2016
In macOS 10.12's ServiceManagement/ServiceManagement.h the following
functions are marked as deprecated since macOS 10.10:
- SMJobSubmit
- SMJobRemove
- SMCopyAllJobDictionaries
The header mentions replacements will be provided by libxpc. Are
replacements available or on the way?
I have a system wide daemon that would like to programmatically launch a
process in a graphical user session. At the moment, our LaunchAgents
managed helper process is always running. Ideally, it would be good to
launch and exit the helper on-demand.
I believe this can now be done with `launchctl bootstrap|bootout gui/<uid>`
on the command line. Should the daemon call out to the launchctl tool?
Kind regards,
Graham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/launchd-dev/attachments/20161018/a4ca6416/attachment.html>
More information about the launchd-dev
mailing list