From f4a10de79046ddda2754cdb8d935afb8d0f96148 Mon Sep 17 00:00:00 2001 From: odt <15870533+odtgit@users.noreply.github.com> Date: Sun, 1 Mar 2026 21:03:28 +0100 Subject: [PATCH] fix(icons): apply file path substitutions in launcher icon resolution (#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 --- quickshell/Widgets/AppIconRenderer.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quickshell/Widgets/AppIconRenderer.qml b/quickshell/Widgets/AppIconRenderer.qml index 289f92c4..4661892f 100644 --- a/quickshell/Widgets/AppIconRenderer.qml +++ b/quickshell/Widgets/AppIconRenderer.qml @@ -49,6 +49,14 @@ Item { readonly property string iconPath: { if (hasSpecialPrefix || !iconValue) return ""; + const moddedId = Paths.moddedAppId(iconValue); + if (moddedId !== iconValue) { + if (moddedId.startsWith("~") || moddedId.startsWith("/")) + return Paths.toFileUrl(Paths.expandTilde(moddedId)); + if (moddedId.startsWith("file://")) + return moddedId; + return Quickshell.iconPath(moddedId, true); + } return Quickshell.iconPath(iconValue, true) || DesktopService.resolveIconPath(iconValue); }