mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
change DesktopEntries.byId to DesktopEntries.heuristicLookup
If there isn't an exact id match - it also looks for the WMStartupClass field in .desktop files
This commit is contained in:
@@ -47,7 +47,7 @@ Rectangle {
|
||||
if (!activeWindow || !activeWindow.appId)
|
||||
return ""
|
||||
|
||||
var desktopEntry = DesktopEntries.byId(activeWindow.appId)
|
||||
var desktopEntry = DesktopEntries.heuristicLookup(activeWindow.appId)
|
||||
return desktopEntry
|
||||
&& desktopEntry.name ? desktopEntry.name : activeWindow.appId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user