fix: check for correct method

This commit is contained in:
Kainoa Kanter 2025-08-22 10:57:37 -07:00
parent e1d623be9c
commit 7899b124b7
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -33,8 +33,7 @@ Singleton {
try {
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
return iconFromName(fallback, fallback)
const entry = (DesktopEntries.byId) ?
const entry = (DesktopEntries.heuristicLookup) ?
DesktopEntries.heuristicLookup(appId) :
DesktopEntries.byId(appId)
const name = entry && entry.icon ? entry.icon : ""