Skip to content

Autostart on MacOS - #1230

Open
j-chmielewski wants to merge 2 commits into
devfrom
autostart-macos
Open

j-chmielewski wants to merge 2 commits into
devfrom
autostart-macos

Conversation

@j-chmielewski

@j-chmielewski j-chmielewski commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Related issue: DefGuard/defguard#3832

Replace macOS LaunchAgent-based autostart with Apple's SMAppService.mainApp login-item API. The change is intended to support both the standalone and Mac App Store builds.

The settings UI now uses one Rust autostart interface on every platform. Rust selects SMAppService on macOS and the existing Tauri autostart plugin on Windows and Linux.

Why

The Tauri plugin registers a LaunchAgent on macOS. That approach may not work reliably in the sandboxed Mac App Store build. SMAppService provides a macOS login-item registration API without requiring the frontend to distinguish distribution channels or operating systems.

@moubctez moubctez mentioned this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant