As the maintainer of Plank Reloaded, the most common bug report I get is "this app has the wrong icon." It's almost never the dock - it's a broken StartupWMClass in the app's .desktop file. So I wrote up how to find the right value on X11, Wayland, and KDE, and why deleting the line often fixes it.

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 4 months ago (5 children)

Yep it has both applied. What are the actual .desktop file names?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 4 months ago* (4 children)

    The desktop files are named firefox.desktop and firefox-nightly.desktop, both in /usr/share/applications.

    EDIT: For completeness, I also checked the window classes of the regular firefox: Screenshot of the KDE system settings displaying properties of the normal non-nightly firefox window

    It can be observed that it uses only the window class firefox, but twice?

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 1 point 4 months ago (3 children)

    Yeah in your case the best fix is probably REMOVING StartupWMClass from those launchers if it is present. Then it will only match the app id on the .desktop file name.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 4 months ago (2 children)

    Hmm, but I thought the StartupWMClasses in the desktop files are correct? I thought the issue is that firefox-nightly uses the firefox class in addition to the firefox-nightly class

  • source
  • parent
  • hideshow 2 child comments