mate-desktop / marco

MATE default window manager
https://mate-desktop.org
GNU General Public License v2.0
199 stars 87 forks source link

iconcache: Use desktop_id to lookup GDesktopAppInfo #776

Open vkareh opened 7 months ago

vkareh commented 7 months ago

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.

lukefromdc commented 5 months ago

Rebased against master to pick up Travis fix, then force-pushed