<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#c25">Comment # 25</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 Jonas Ådahl from <a href="show_bug.cgi?id=752258#c24">comment #24</a>)
<span class="quote">> 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?</span >
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] <a href="https://git.gnome.org/browse/glib/tree/gio/gapplication.c#n2271">https://git.gnome.org/browse/glib/tree/gio/gapplication.c#n2271</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>