[launchd-dev] Replacements for deprecated SMJobSubmit and SMJobRemove

2016-10-18 Thread Graham Miln
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

Re: [launchd-dev] Replacements for deprecated SMJobSubmit and SMJobRemove

2016-10-18 Thread Joe Auricchio
Hi Graham, Please *do not* shell out to launchctl. It's better to keep using the deprecated SM functions than to run launchctl. Sorry, but replacements are not yet available. There isn't presently API for a system-wide LaunchDaemon to open a Mach IPC or XPC connection to a LaunchAgent, which I