From 7141a9199424363abfd527a54ff2797a1bc49448 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Wed, 3 Sep 2025 13:05:51 +0200 Subject: [PATCH] DistroLogoService: add NixOS path as requested in #197 --- Services/DistroLogoService.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Services/DistroLogoService.qml b/Services/DistroLogoService.qml index 3a04d6e..46f531b 100644 --- a/Services/DistroLogoService.qml +++ b/Services/DistroLogoService.qml @@ -35,6 +35,14 @@ Singleton { } } + // NixOS hicolor paths + candidates.push(`/run/current-system/sw/share/icons/hicolor/scalable/apps/${n}.svg`) + for (const s of sizes) { + for (const ext of exts) { + candidates.push(`/run/current-system/sw/share/icons/hicolor/${s}/apps/${n}.${ext}`) + } + } + // Generic icon themes under /usr/share/icons (common cases) for (const ext of exts) { candidates.push(`/usr/share/icons/${n}.${ext}`)