DistroLogoService: add NixOS path as requested in #197

This commit is contained in:
Ly-sec 2025-09-03 13:05:51 +02:00
parent 80a2e69eaa
commit 7141a91994

View file

@ -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}`)