Skip to content

fix(icons): apply file path substitutions in launcher icon resolution#1877

Merged
Purian23 merged 1 commit intoAvengeMedia:masterfrom
odtgit:fix/launcher-icon-substitutions
Mar 1, 2026
Merged

fix(icons): apply file path substitutions in launcher icon resolution#1877
Purian23 merged 1 commit intoAvengeMedia:masterfrom
odtgit:fix/launcher-icon-substitutions

Conversation

@odtgit
Copy link
Contributor

@odtgit odtgit commented Mar 1, 2026

Summary

Follow-up to #1867. The launcher's AppIconRenderer.qml resolved icons via its own Quickshell.iconPath() call without going through appIdSubstitutions, so PWA icons configured via regex file path rules were not resolved in the app launcher (only in the taskbar/workspace widget).

This adds the same Paths.moddedAppId() check before falling through to the default icon lookup, matching the pattern established in Paths.getAppIcon().

Test plan

  • Configure a regex appIdSubstitution that maps a PWA app_id to a file path (e.g. ^(chrome|msedge|chromium)-(.+)$/home/user/.local/share/icons/hicolor/128x128/apps/$1-$2.png)
  • Open the app launcher and verify PWA icons display correctly
  • Verify non-PWA apps are unaffected

Follow-up to AvengeMedia#1867. The launcher's AppIconRenderer used its own
Quickshell.iconPath() call without going through appIdSubstitutions,
so PWA icons configured via regex file path rules were not resolved
in the app launcher.
@Purian23 Purian23 merged commit f4a10de into AvengeMedia:master Mar 1, 2026
1 check passed
@Purian23
Copy link
Collaborator

Purian23 commented Mar 1, 2026

Thanks

bbedward pushed a commit that referenced this pull request Mar 10, 2026
…#1877)

Follow-up to #1867. The launcher's AppIconRenderer used its own
Quickshell.iconPath() call without going through appIdSubstitutions,
so PWA icons configured via regex file path rules were not resolved
in the app launcher.

Co-authored-by: odtgit <odtgit@taliops.com>
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.

2 participants