<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - wayland: Use g_get_prgname as the xdg surface application id"
href="https://bugzilla.gnome.org/show_bug.cgi?id=746435#c17">Comment # 17</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - wayland: Use g_get_prgname as the xdg surface application id"
href="https://bugzilla.gnome.org/show_bug.cgi?id=746435">bug 746435</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=jadahl%40gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=309435&action=diff" name="attach_309435" title="wayland: Use g_get_prgname() to get the xdg_surface.set_app_id string">attachment 309435</a> <a href="attachment.cgi?id=309435&action=edit" title="wayland: Use g_get_prgname() to get the xdg_surface.set_app_id string">[details]</a></span> <a href='review?bug=746435&attachment=309435'>[review]</a>
wayland: Use g_get_prgname() to get the xdg_surface.set_app_id string
Prior to this patch, the ID of the GtkApplication was always used for
clients which were GtkApplications. This would only be guaranteed to be
correct for D-Bus activatable programs. As a result, all
non-D-Bus-activatable applications would set the wrong ID making the
shell unable to find the corresponding .desktop file.
This change makes it so that the GDK backend always uses the name
passed to g_set_prgname, or the default value if not explicitly set, as
this more often corresponds to the .desktop file.
This means that in order to make D-Bus activatable applications set the
correct application ID, they must, for now, manually call
g_set_prgname() with their application ID (basename of the .desktop
file).
If g_get_prgname() returns NULL, fallback to gdk_get_program_class()
even though it will most likely never be correct according to the
xdg_surface.set_app_id specification.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>