[Wayland-bugs] [Bug 752258] Epiphany displays incorrect name in gnome-shell app menu

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 16 18:58:42 PDT 2015


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

--- Comment #25 from Florian Müllner <florian.muellner at gmail.com> ---
(In reply to Jonas Ådahl from comment #24)
> 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?

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] https://git.gnome.org/browse/glib/tree/gio/gapplication.c#n2271

-- 
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/20150717/fc242f3e/attachment.html>


More information about the wayland-bugs mailing list