get information about my installed PriviledgedHelperTools

My app installs a couple PrivilegedHelperTools.

Right now I get information about my previously installed tools via the long deprecated SMJobCopyDictionary. E.G.:

SMJobCopyDictionary( kSMDomainSystemLaunchd, (__bridge CFStringRef)toolName )

which I then use to determine whether these tools need an update at my app's launch time.

Is there a better, modern, non-deprecated way to look up information about my previously installed helper tools?

Is there a better, modern, non-deprecated way to look up information about my previously installed helper tools?

No, but also yes. There’s no better way to do what you’re currently doing, but you may be able to avoid the whole issue by getting this information from the daemon itself using XPC. That’s generally how I approach this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
get information about my installed PriviledgedHelperTools
 
 
Q