Merge pull request #129 from ThatOneCalculator/fix/heuristic-lookup
fix: use heuristicLookup for desktop entries if available
This commit is contained in:
commit
d791705afa
1 changed files with 3 additions and 1 deletions
|
|
@ -33,7 +33,9 @@ Singleton {
|
|||
try {
|
||||
if (typeof DesktopEntries === 'undefined' || !DesktopEntries.byId)
|
||||
return iconFromName(fallback, fallback)
|
||||
const entry = DesktopEntries.byId(appId)
|
||||
const entry = (DesktopEntries.heuristicLookup) ?
|
||||
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