mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix: use heuristicLookup for desktop entries if available
This commit is contained in:
+4
-1
@@ -33,7 +33,10 @@ Singleton {
|
||||
try {
|
||||
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
||||
return iconFromName(fallback, fallback)
|
||||
const entry = DesktopEntries.byId(appId)
|
||||
|
||||
const entry = (DesktopEntries.byId) ?
|
||||
DesktopEntries.heuristicLookup(appId) :
|
||||
DesktopEntries.byId(appId)
|
||||
const name = entry && entry.icon ? entry.icon : ""
|
||||
return iconFromName(name || fallback, fallback)
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user