fix: use heuristicLookup for desktop entries if available
This commit is contained in:
parent
8f951946ea
commit
e1d623be9c
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue