feat: add auto-launch functionality for desktop app

- Implemented IPC channels for managing auto-launch settings.
- Enhanced main process to handle auto-launch behavior on startup.
- Updated UI components to allow users to configure launch options.
- Integrated analytics tracking for auto-launch events.

This commit introduces the ability for users to enable or disable the application launching at system startup, along with options for starting minimized to the tray.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-04-20 12:42:06 -07:00
parent 7a389e7a25
commit 24383a3741
9 changed files with 493 additions and 17 deletions

View file

@ -69,3 +69,10 @@ export function handlePendingDeepLink(): void {
deepLinkUrl = null;
}
}
// True when a deep link arrived before the main window existed. Callers can
// use this to force-create a window even on a "started hidden" boot, so we
// don't silently swallow a `surfsense://` URL the user actually clicked on.
export function hasPendingDeepLink(): boolean {
return deepLinkUrl !== null;
}