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

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 16 19:08:13 PDT 2015


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

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

Won't this mean it'll be incorrect for D-Bus activatable applications with no
possibility to fix it? Or do you mean D-Bus activatable applications should set
the prgname to the interface name?

gdk_get_program_class() will most likely never be correct. Prior to the patch,
gedit would be "Gedit" and gnome-terminal would be "Gnome-terminal" IIRC.

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


More information about the wayland-bugs mailing list