Repository navigation
chore!: remove deprecated macOS login item API - #52351
Conversation
1b96e1c to
a44eccb
Compare
ckerr
left a comment
There was a problem hiding this comment.
The code changes LGTM. 👍
I have not mentioned the macOS-level migration logic from that quote in the breaking changes doc as I couldn't find other sources backing this up besides the Slack message with manual testing done by a maintainer. (Public documentation in this area is sparse.)
Unless there's reason to disbelieve the claim, we should consider including it in the breaking changes doc in some form. If it's uncertain, maybe we could add phrasing like "may" e.g. "may see openAtLogin: false while the app still launches at login. This is easily fixed by..."
|
Thanks for the review, @ckerr! So I just tested this with the help of Claude on macOS 26.6. It seems like both the legacy APIs and the new API read and write to the same internal store. Registering an app through one of them is readable through the other and vice-versa. This matches the existing testing by another maintainer. So I'll simply remove that part from the breaking changes section. It's nothing that app developers need to worry about. |
827cdcd to
c361239
Compare
c361239 to
ac3f5fc
Compare
|
Rebased to fix merge conflicts. |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "44-x-y", please check out #52667 |
Description of Change
Fixes #52334
Refs #48090
Electron 44 removes support for macOS 12.
This PR removes:
One benefit of removing the old APIs is fixing a deadlock condition in
app.getLoginItemSettings(see #48090 and this Slack message).Past discussions: #1, #2, #3
Checklist
npm testpassesRelease Notes
Notes:
openAsHiddenoption fromapp.setLoginItemSettings().openAsHidden,wasOpenedAsHiddenandrestoreStatefields from return value ofapp.getLoginItemSettings().app.getLoginItemSettings()on macOS.