go-autostart
go-autostart copied to clipboard
Use ServiceManagement API on darwin
See:
- https://github.com/alexzielenski/StartAtLoginController
- https://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/
@emersion Did you figure out how to do this approach in Go?
Nope, sorry
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
I'd prefer not to rely on cgo