1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -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

@@ -327,7 +327,7 @@ Singleton {
readonly property string appIcon: notification.appIcon
readonly property string appName: {
if (notification.appName == "") {
const entry = DesktopEntries.byId(notification.desktopEntry)
const entry = DesktopEntries.heuristicLookup(notification.desktopEntry)
if (entry && entry.name) {
return entry.name.toLowerCase()
}