fix: resolve persisted notification app labels

This commit is contained in:
Gabriel Brown
2026-08-18 06:14:07 -04:00
parent c038c57278
commit eff0bc44ff
4 changed files with 56 additions and 3 deletions
+5 -1
View File
@@ -88,7 +88,11 @@ Singleton {
}
function applicationLabel(appId: string, entries: var, remembered: var): string {
const entry = DesktopEntries.byId(appId) || DesktopEntries.heuristicLookup(appId);
const desktopId = appId.endsWith(".desktop") ? appId.slice(0, -8) : appId;
const entry = DesktopEntries.byId(appId)
|| DesktopEntries.byId(desktopId)
|| DesktopEntries.heuristicLookup(appId)
|| DesktopEntries.heuristicLookup(desktopId);
return entry?.name || remembered[appId]?.name || appId;
}