<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#c31">Comment # 31</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=florian.muellner%40gmail.com" title="Florian Müllner <florian.muellner@gmail.com>"> <span class="fn">Florian Müllner</span></a>
</span></b>
<pre>(In reply to Michael Catanzaro from <a href="show_bug.cgi?id=752258#c30">comment #30</a>)
<span class="quote">> 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"). </span >
The current heuristics used in gnome-shell check for _GTK_APPLICATION_ID first,
and only then use WM_CLASS/xdg_surface.application_id. So unless you are
suggesting to modify our heuristics, the g_set_prgname() call is not used for
app matching in the case of DBus-activatable apps as long as they're based on
GtkApplication.
<span class="quote">> 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.</span >
That should already work for the majority of applications on X11 - prgname
defaults to the executable's basename, which usually matches the .desktop
filename for non-DBus-activatable apps.
And if xdg_surface.application_id is changed to match the prgname again, it
would just work for most apps on wayland again.</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>