<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Epiphany displays incorrect name in gnome-shell app menu"
href="https://bugzilla.gnome.org/show_bug.cgi?id=752258#c30">Comment # 30</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Epiphany displays incorrect name in gnome-shell app menu"
href="https://bugzilla.gnome.org/show_bug.cgi?id=752258">bug 752258</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=mcatanzaro%40gnome.org" title="Michael Catanzaro <mcatanzaro@gnome.org>"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
<pre>Pinging stakeholders on GtkApplication (Ryan, Matthias) for this:
I had a long discussion about this bug yesterday with Jonas and Carlos
Garnacho. We agreed that our solution should (a) not require changes in
applications except D-Bus activatable applications, since there are relatively
few such applications and we can fix them easily, and our solution should also
(b) result in matching behavior between mutter's X11 and Wayland backends, i.e.
we agree that it's wrong to prefer the GtkApplication ID in the Wayland backend
but WM_CLASS/xdg_surface.set_application_id in the X11 backend.
Our preferred solution is to simply revert this change. Then
WM_CLASS/xdg_surface.set_application_id will be preferred always. D-Bus
activatable applications will need to set their prgname to the full name of the
desktop file, e.g. g_set_prgname("org.gnome.gedit"). This is already required
by our current documentation of GNOME's application matching [1] so it is not
really any change in our guidance. We would then fix all D-Bus activatable
apps.
To make this simpler, it would be ideal for applications to not need to call
g_set_prgname, but for it to be set properly automatically. This requires GTK+
to know whether an application is D-Bus activatable. Is there already a
solution for that? If not, we discussed one possibility: adding a new enum
value to GApplicationFlags, say G_APPLICATION_IS_DBUS_ACTIVATABLE. GTK+ would
then use this to determine that the prgname should be set to the GtkApplication
ID rather than argv[0]. I am not entirely sure this new flag would be a good
idea, though, since it's not going to be much easier to use than simply setting
the prgname manually.
[1] <a href="https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased">https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased</a></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>