GNOME Bugzilla – Bug 772614
window: Expose Flatpak application ID
Last modified: 2016-10-10 22:55:34 UTC
See patch.
Created attachment 337241 [details] [review] window: Expose Flatpak application ID GNOME Shell's window matching currently fails frequently with Flatpak applications, as one of the primary hints used to link windows with .desktop files - the WM_CLASS - no longer matches when flatpak renames the exported .desktop file. Luckily, Flatpak provides us with a fail-safe way to map from the PID to the corresponding application ID, so expose an appropriate method that allows GNOME Shell to reliably match windows to the corresponding Flatpak app.
Review of attachment 337241 [details] [review]: ::: src/core/window.c @@ +772,3 @@ + g_autofree char *info_filename = NULL; + + g_clear_pointer (&window->flatpak_id, g_free); need to free this on window destruction too
Attachment 337241 [details] pushed as bccff5b - window: Expose Flatpak application ID Eeeeks, thanks for the catch!