<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - wayland: Use g_get_prgname as the xdg surface application id"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=746435#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - wayland: Use g_get_prgname as the xdg surface application id"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=746435">bug 746435</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>Created <span class=""><a href="attachment.cgi?id=300110&action=diff" name="attach_300110" title="wayland: Set the correct xdg_surface application id">attachment 300110</a> <a href="attachment.cgi?id=300110&action=edit" title="wayland: Set the correct xdg_surface application id">[details]</a></span> <a href='review?bug=746435&attachment=300110'>[review]</a>
wayland: Set the correct xdg_surface application id

The "app_id" of a xdg_surface should be the ID that can potentially be
used to get the DBUS name or the .desktop file.

For GtkApplication programs this is the ID passed when creating the
GtkApplication object, so when available lets use that.

As fallbacks, first try g_get_prgname as it often corresponds to the
basename part of the .dektop file for non-GtkApplication programs.
Otherwise use gdk_get_program_class, even though that string usually
doesn't conform to the expectations of xdg_surface.set_application_id.</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>