From d5a3d1e3898a3c374a1495a58752ee1ba381666e Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 27 May 2026 09:34:15 +0100 Subject: [PATCH] quickshell: use Quickshell.iconPath for app stream icons Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 1258ded..8f3b4ac 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -1500,11 +1500,11 @@ in objects: [modelData] } - property string appIcon: { + property string appIconPath: { let icon = modelData.properties["application.icon-name"] || ""; - if (icon !== "") return icon; - let name = (modelData.properties["application.name"] || modelData.name || "").toLowerCase(); - return name; + if (icon === "") icon = (modelData.properties["application.name"] || modelData.name || "").toLowerCase(); + if (icon === "") return ""; + return Quickshell.iconPath(icon, true) || ""; } Row { @@ -1515,12 +1515,12 @@ in width: 14 height: 14 anchors.verticalCenter: parent.verticalCenter - visible: appIcon !== "" + visible: appIconPath !== "" Image { id: appStreamIcon anchors.fill: parent - source: appIcon !== "" ? "image://icon/" + appIcon : "" + source: appIconPath sourceSize.width: 14 sourceSize.height: 14 smooth: true @@ -1539,7 +1539,7 @@ in font.family: "FiraMono Nerd Font" font.pixelSize: 11 elide: Text.ElideRight - width: parent.width - (appIcon !== "" ? 20 : 0) + width: parent.width - (appIconPath !== "" ? 20 : 0) } }