ThemeIcons: fuzzy find icons

This commit is contained in:
Ly-sec
2026-01-08 17:25:24 +01:00
parent 3c2328fe4c
commit be04f5e11c
3 changed files with 279 additions and 22 deletions
+7 -1
View File
@@ -661,7 +661,13 @@ Loader {
modelData.toplevel.activate();
} else if (modelData?.appId) {
// Pinned app not running - launch it
const app = DesktopEntries.byId(modelData.appId);
// Use ThemeIcons to robustly find the desktop entry
const app = ThemeIcons.findAppEntry(modelData.appId);
if (!app) {
Logger.w("Dock", `Could not find desktop entry for pinned app: ${modelData.appId}`);
return;
}
if (Settings.data.appLauncher.customLaunchPrefixEnabled && Settings.data.appLauncher.customLaunchPrefix) {
// Use custom launch prefix