Skip to content

fix: always emit executableWillLaunchAtLogin from getLoginItemSettings#51509

Merged
ckerr merged 2 commits into
40-x-yfrom
trop/40-x-y-bp-fix-always-emit-executablewilllaunchatlogin-from-getloginitemsettings--1778014032357
May 6, 2026
Merged

fix: always emit executableWillLaunchAtLogin from getLoginItemSettings#51509
ckerr merged 2 commits into
40-x-yfrom
trop/40-x-y-bp-fix-always-emit-executablewilllaunchatlogin-from-getloginitemsettings--1778014032357

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented May 5, 2026

Backport of #51416

See that PR for details.

Notes: Fixed app.getLoginItemSettings() returning undefined for executableWillLaunchAtLogin on macOS; the property is now always a boolean.

trop Bot and others added 2 commits May 5, 2026 20:47
`Converter<LoginItemSettings>::ToV8` only set `executableWillLaunchAtLogin`
inside the Windows build block, so calling `app.getLoginItemSettings()` on
macOS returned an object where the property was `undefined` rather than
the boolean its type implies.

Move the `executable_will_launch_at_login` field out of the Windows-only
section of `LoginItemSettings` (it keeps its `false` default everywhere)
and unconditionally emit the property in the V8 converter. The value is
still only meaningful on Windows; on other platforms it is always
`false`.

Co-authored-by: Sam Attard <sattard@anthropic.com>
Co-authored-by: Sam Attard <sattard@anthropic.com>
@trop trop Bot requested a review from MarshallOfSound May 5, 2026 20:47
@trop trop Bot added 40-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 5, 2026
@ckerr ckerr merged commit 108ff00 into 40-x-y May 6, 2026
115 of 119 checks passed
@ckerr ckerr deleted the trop/40-x-y-bp-fix-always-emit-executablewilllaunchatlogin-from-getloginitemsettings--1778014032357 branch May 6, 2026 13:48
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented May 6, 2026

Release Notes Persisted

Fixed app.getLoginItemSettings() returning undefined for executableWillLaunchAtLogin on macOS; the property is now always a boolean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

40-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant