fix: resolve persisted notification app labels

This commit is contained in:
Gabriel Brown
2026-08-18 05:57:10 -04:00
parent c415c4f176
commit f22e405b50
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;
}