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,