From 198dfedd5fa5005164abd4c0c3a0eded14e41608 Mon Sep 17 00:00:00 2001 From: Jacob Luttrull <137103371+jacobrluttrull@users.noreply.github.com> Date: Wed, 1 Jul 2026 12:49:16 -0400 Subject: [PATCH] fix(autoStart): persist Start With System toggle on Windows (#1277) Co-authored-by: Claude Opus 4.8 --- src/main/autoStart.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/autoStart.ts b/src/main/autoStart.ts index cfb43e8..a99e627 100644 --- a/src/main/autoStart.ts +++ b/src/main/autoStart.ts @@ -73,7 +73,11 @@ function makeAutoStartLinuxPortal() { } const autoStartWindowsMac: AutoStart = { - isEnabled: () => app.getLoginItemSettings().openAtLogin, + isEnabled: () => { + const { openAtLogin, executableWillLaunchAtLogin } = app.getLoginItemSettings(); + // Windows only reports openAtLogin as true when queried with the same args set in enable() + return openAtLogin || executableWillLaunchAtLogin; + }, enable: () => app.setLoginItemSettings({ openAtLogin: true,