This replaces #752 by using either _BAMF_DESKTOP_FILE or _GTK_APPLICATION_ID to reconstruct the path to the desktop spec file. The effect is that any application that reports either of these property to the window (like many GNOME applications do), and has a matching desktop file, will be picked up correctly and Marco will get the best possible icon for that window.
If a desktop ID cannot be found for the window, it moves on to the next matching method, so nothing changes for them.
This replaces #752 by using either
_BAMF_DESKTOP_FILE
or_GTK_APPLICATION_ID
to reconstruct the path to the desktop spec file. The effect is that any application that reports either of these property to the window (like many GNOME applications do), and has a matching desktop file, will be picked up correctly and Marco will get the best possible icon for that window.If a desktop ID cannot be found for the window, it moves on to the next matching method, so nothing changes for them.