Repository navigation
Conversation
Browser web apps (PWAs) get their own AUMID as soon as their window opens, but set their window icon about a second later. The icon fallback only used the AUMID for Store apps, so PWAs got the browser exe's icon, which then stayed cached. Any AUMID is tried again, as before amnweb#1169. An ID shell:AppsFolder doesn't list still falls back to the exe. Refs amnweb#461 Assisted-by: Claude Code <noreply@anthropic.com>
n-crespo
added a commit
to n-crespo/yasb
that referenced
this pull request
Nov 22, 2026
n-crespo
added a commit
to n-crespo/yasb
that referenced
this pull request
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #461
Problem
PWAs installed from Chrome (not Edge) show the browser's icon in the taskbar/glazewm workspace widgets if they're opened while yasb is running. After reloading yasb they show the right icon.
Cause
From what I can tell, a PWA window gets its own AUMID as soon as it opens, but its window icon only gets set about a second later. I polled a new window and saw the AUMID at ~0.2s and the icon at ~1–1.5s.
If yasb looks at the window during that gap,
_window_iconfalls back to_app_icon. Since #1169 that only tries the AUMID for Store app IDs (with!), so a PWA gets the browser exe's icon, and that stays cached. Before #1169 the fallback tried any AUMID throughshell:AppsFolder, which I think is why this used to work.Fix
Let
_app_icontry any AUMID again. An ID thatshell:AppsFolderdoesn't list returnsNone, so apps without a listed AUMID still fall back to their exe icon like before.I might be missing a reason it was limited to Store apps. If so, I'm happy to change the approach.
Testing
ruffandpyrightpass.