Skip to content

fix: prevent SetLoginItemSettings() from mounting volumes - #34068

Merged
jkleinsc merged 1 commit into
mainfrom
update-RemoveFromLoginItems
May 6, 2022
Merged

jkleinsc merged 1 commit into
mainfrom
update-RemoveFromLoginItems

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Update SetLoginItemSettings to include CL:964074. From the CL:

If a user has a network volumes listed in login items, calling
LSSharedFileListItemCopyResolvedURL() will cause an attempt to mount
those volumes. This is confusing behavior because it is not relevant to
the user's action (which is likely installing PWA or Chrome extension
with a background page). Also the name "GetLoginFileList" doesn't
indicate there is any such side-effect expected. Using kLSSharedFileListDoNotMountVolumes flag will prevent this
behavior.

Checklist

Release Notes

Notes: Fixed an issue where calling SetLoginItemSettings() could potentially cause network volumes to be incorrectly mounted.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/17-x-y labels May 4, 2022
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 4, 2022
@codebytere
codebytere force-pushed the update-RemoveFromLoginItems branch from a67b71e to a965c4f Compare May 4, 2022 08:47
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 5, 2022
@jkleinsc
jkleinsc merged commit a401360 into main May 6, 2022
@jkleinsc
jkleinsc deleted the update-RemoveFromLoginItems branch May 6, 2022 00:46
@release-clerk

release-clerk Bot commented May 6, 2022

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where calling SetLoginItemSettings() could potentially cause network volumes to be incorrectly mounted.

@trop

trop Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "18-x-y", please check out #34106

@trop trop Bot added the in-flight/18-x-y label May 6, 2022
@trop

trop Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "17-x-y", please check out #34107

@trop

trop Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "19-x-y", please check out #34108

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

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants