https://bugzilla.gnome.org/show_bug.cgi?id=752258

--- Comment #25 from Florian Müllner <[email protected]> ---
(In reply to Jonas Ådahl from comment #24)
> The question is rather, how do we get a valid name to pass to
> xdg_surface.set_app_id, which id should be the base name of the .desktop
> file. Can we force GtkApplication apps to set the prgname to this?

To the basename of the .desktop file? No, we don't know that. GtkApplication
does set a default prgname if the app didn't set it itself[0] (which happens to
match the pre-dbus-activation convention for .desktop file names), and apps
with a different naming scheme (hopefully) call it themselves to hint at the
right name. So using g_get_prgname() for set_app_id() should be a good pick if
the goal is to associate the app with its .desktop file, or just go back to the
previously used gdk_get_program_class() - that's what's used on X, and some
fringe app might call gdk_set_program_class() directly instead of
g_set_prgname()

[0] https://git.gnome.org/browse/glib/tree/gio/gapplication.c#n2271

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to