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

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes