Skip to content

fix: match Windows login items when the executable path contains spaces - #54419

Merged
codebytere merged 1 commit into
45-x-yfrom
bp/45-x-y/54364
Sep 26, 2026
Merged

codebytere merged 1 commit into
45-x-yfrom
bp/45-x-y/54364

Conversation

@codebytere

Copy link
Copy Markdown
Member

Backport of #54364

See that PR for details. The cherry-pick conflicted because 45-x-y quotes Run entries with AddQuoteForArg while main uses QuoteForCommandLineToArgvW; the new StripSurroundingQuotes helper is used with 45-x-y's quoting kept as is.

Notes: Fixed app.getLoginItemSettings() not finding login items on Windows when the executable path contains spaces.

…es (#54364)

getLoginItemSettings() parsed the lookup path as a command line, so an
unquoted path with a space was cut at the space and never matched the
quoted Run entries that setLoginItemSettings() writes.

(cherry picked from commit 076972c)
@codebytere codebytere added backport This is a backport PR semver/patch backwards-compatible bug fixes 45-x-y labels Sep 26, 2026
@codebytere
codebytere enabled auto-merge (squash) September 26, 2026 09:04
@codebytere
codebytere merged commit 89e3feb into 45-x-y Sep 26, 2026
89 checks passed
@codebytere
codebytere deleted the bp/45-x-y/54364 branch September 26, 2026 11:17
@release-clerk

release-clerk Bot commented Sep 26, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed app.getLoginItemSettings() not finding login items on Windows when the executable path contains spaces.

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

Labels

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants