<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#c24">Comment # 24</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=jadahl%40gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span></b>
<pre>(In reply to Jasper St. Pierre from <a href="show_bug.cgi?id=752258#c23">comment #23</a>)
<span class="quote">> (In reply to Jonas Ådahl from <a href="show_bug.cgi?id=752258#c20">comment #20</a>)
> > So, according to Jasper in <a href="show_bug.cgi?id=752258#c15">comment 15</a> "prgname" should be (or is completely
> > valid to be) the name of the binary, and according to Michael in <a href="show_bug.cgi?id=752258#c16">comment 16</a>
> > "prgname" should always be the basename of the .desktop file. For the
> > org.gnome.gedit.desktop case, *should* the prgname be "gedit" or
> > "org.gnome.gedit"?
> >
> > If it should be "gedit" then we cannot use prgname to set the xdg_surface
> > app_id since it should mean that for D-Bus activatable applications always
> > set the wrong ID. Using the GtkApplication ID isn't very good either, since
> > it'd be wrong for all non-D-Bus-activatable applications, but at least it
> > isn't incorrect forever.
>
> For gedit, xdg_surface.set_app_id should be called with "gedit", and
> gtk_surface.set_gtk_application_id should be called with "org.gnome.gedit".</span >
That'd go against any version of "set_app_id" I've seen. The .desktop file of
gedit is "org.gnome.gedit.desktop", gedit is a D-Bus activatable applicatoin.
According to xdg_surface.set_app_id it should definitely not be "gedit".
If you think xdg_surface.set_app_id is wrong and should be some "binary name"
or similar, unrelated to .desktop file names and D-Bus names, then we'd need to
change the spec (and probably not call it anything with "ID".
(In reply to Florian Müllner from <a href="show_bug.cgi?id=752258#c22">comment #22</a>)
<span class="quote">> (In reply to Michael Catanzaro from <a href="show_bug.cgi?id=752258#c21">comment #21</a>)
> > It should be "org.gnome.gedit" based on our current guidance at
> > <a href="https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased">https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased</a>
>
> For dbus-activatable apps using GApplication (like gedit), it doesn't matter
> - we won't use the WM_CLASS at all in that case, as matching by
> _GTK_APPLICATION_ID already turns up the .desktop file.</span >
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 and put that use
case in the API docs?</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>