[Wayland-bugs] [Bug 746435] wayland: Use g_get_prgname as the xdg surface application id

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Sun Mar 22 22:15:37 PDT 2015


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

--- Comment #6 from Jonas Ã…dahl <jadahl at gmail.com> ---
Created attachment 300110
  --> https://bugzilla.gnome.org/attachment.cgi?id=300110&action=edit
wayland: Set the correct xdg_surface application id

The "app_id" of a xdg_surface should be the ID that can potentially be
used to get the DBUS name or the .desktop file.

For GtkApplication programs this is the ID passed when creating the
GtkApplication object, so when available lets use that.

As fallbacks, first try g_get_prgname as it often corresponds to the
basename part of the .dektop file for non-GtkApplication programs.
Otherwise use gdk_get_program_class, even though that string usually
doesn't conform to the expectations of xdg_surface.set_application_id.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150323/9f33ee84/attachment.html>


More information about the wayland-bugs mailing list