emersion/go-autostart

Use ServiceManagement API on darwin

Opened this issue · 4 comments

pjebs commented

@emersion Did you figure out how to do this approach in Go?

Nope, sorry

osbre commented

Looks like it's possible to call Objective-C from Go.
https://coderwall.com/p/l9jr5a/accessing-cocoa-objective-c-from-go-with-cgo

And here is the docs for Service Management API
https://developer.apple.com/documentation/servicemanagement?language=objc

pjebs commented

I'd prefer not to rely on cgo