Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117772

WM_CLASS/wmclass are inconsistent when running in X11/XCB vs Qt/Wayland, leading to missing app icons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.5.3, 6.6.0
    • QPA: Wayland, QPA: X11/XCB
    • None
    • Linux/Wayland, Linux/X11

      The xcb integration sets the WM_CLASS to
      [argv0BaseName(), QCoreApplication::applicationName()] (if one doesn't pass -name and doesn't set the RESOURCE_NAME environment variable) (see QXcbIntegration::wmClass()).

      Qt/Wayland sets the app ID to QGuiApplication::desktopFileName() if that is set, or otherwise to a reverse dns identifier based on organization domain and applicationFilePath (see QWaylandWindow::initWindow()).

      For Linux .desktop files, when running under wayland it looks like the Wayland App ID is used as a wmclass to match against the StartupWMClass, but that doesn't match the WM_CLASS that is used when running under X11/XCB.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            liaqi Liang Qi
            con Eike Ziller
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes