<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - No application icon on Wayland with the kde5 backend"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125934">125934</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No application icon on Wayland with the kde5 backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Inherited From OOo
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>graphics stack
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>glogow@fbihome.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
In Wayland the application icon is loaded from the desktop file by the
compositor. Therefore Qt has an API call to set the desktop file for the
application, which correctly sets the appId on Wayland:
QGuiApplication::setDesktopFileName

But this still leaves us with just a single icon. There is a Wayland API to set
a surfaces appId via the XDG shell protocol: set_app_id. This is - AFAIK - the
same call that is used by setDesktopFileName, but it can be used per Wayland
surface and isn't restricted to the global QGuiApplication. A XDG surface
normally maps to a top level window or a popup. And Michael tested that
changing the setDesktopFileName also changes the icon for the next created
window.

I'm told that appId is supposed to be fixed like the WM_CLASS, but just like
the latter, it's currently not enforced. So changing appId works and the icon
of the window changes, but currently has side effects, like crashes in
"kwin_wayland --xwayland" on shutdown. It works fine with Weston 5.0.0-3 on
Debian Buster.


Steps to Reproduce:
1. Start LO on Wayland with the kde5 backend


Actual Results:
The task manager and the window decorations show the default Wayland icon.

Expected Results:
The task manager and the window decorations show the document / module specific
LO icon.


Reproducible: Always


User Profile Reset: No



Additional Info:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>