1
0
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:
Gonen Gazit
2025-08-29 16:52:19 +03:00
parent 64a26aabb8
commit d37ccd86ee
4 changed files with 11 additions and 12 deletions

View File

@@ -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
}