September 26, 2026
On macOS 13 and later, call SMAppService.mainApp.register() to open your app at login and unregister() to stop, and read SMAppService.mainApp.status to show the real state in your settings.