Skip to content

perf: shared icon service and non-blocking window actions - #1169

Merged
amnweb merged 6 commits into
mainfrom
perf/app-optimization-1
Oct 16, 2026
Merged

amnweb merged 6 commits into
mainfrom
perf/app-optimization-1

Conversation

@amnweb

@amnweb amnweb commented Oct 14, 2026

Copy link
Copy Markdown
Owner

What's in it

  • Clicking a frozen app doesn't freeze YASB anymore. Taskbar, window switcher, Quick Launch and media widgets post the window commands now and don't attach to the app's thread.
  • One icon service. Every widget loaded and cached icons its own way. Now they all use IconService, icons load in the background and stay in memory only.
  • Taskbar starts faster. Matching windows to pinned apps doesn't look up app names anymore.
  • Launchpad URLs. More sites give an icon and a correct title.

Please test

  • Click apps in the taskbar, window switcher, Quick Launch and media widgets. Does the window come to the front and get focus, minimized ones too?
  • Pin and unpin apps in the taskbar, and check the pinned icons after a restart.
  • Any icon that looks wrong or is missing in any widget.

Things you might notice

  • Pinned app icons come from the app itself now. The old PNGs in taskbar_icons aren't used anymore.
  • Quick Launch no longer ranks apps with the default icon lower.
  • Icons appear a moment after the widget, not together with it.

Clicking a frozen app in the taskbar, window switcher or Quick Launch
froze YASB too, because restore, minimize, maximize and focus waited
for the app. They are posted now, and focus doesn't attach to the
app's input thread anymore.

Media widgets now find the app's own window first and restore
minimized Store apps.
Every widget had its own icon code and cache, and some saved PNGs to
temp. Now they all get icons from IconService, which loads them on a
background thread and keeps them in memory only.

Pinned taskbar apps take their icon from the shortcut, exe or Store
app instead of a saved PNG.
The taskbar looked up the app name for every window and never used it.
Now the name is only looked up when you pin an app.
Many sites block Python's user agent, so send a browser one. Also
decode HTML entities in page titles.
Remove comments that only repeated the code and shorten the docstrings
in service.py and sources.py. resolve.py holds the icon source types and
load_icon, so sources.py says what's in it.
Quick Launch icons are cached in memory rather than stored on disk
so the reset command no longer needs to check for or remove
the `yasb_quick_launch_icons` directory.
@amnweb
amnweb merged commit 6fc91db into main Oct 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant