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.

  • angel@sopuli.xyz
    link
    fedilink
    arrow-up
    9
    ·
    16 hours ago

    I use Firefox nightly and recently switched to Wayland (KDE). Ever since I switched, the taskbar often displays Firefox nightly with the regular Firefox icon, and the name Firefox instead of Firefox nightly. After reading your blog post I’m thinking that the culprit could be an incorrect StartupWMClass. But I don’t get why this issue never showed on X11 then.

    • zquestz@lemmy.worldOP
      link
      fedilink
      arrow-up
      7
      ·
      15 hours ago

      Yeah something isn’t being matched right. Might want to look at both .desktop files and compare them. Probably be pretty obvious when you look. =)

      • angel@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        ·
        13 hours ago

        I just checked the .desktop file for firefox nightly. It contains only firefox-nightly as its StartupWMClass. So I went ahead and also checked the window class firefox nightly is running as and found the following: Screenshot showing the window properties of firefox nightly in the KDE system settings

        Does this mean that firefox nightly is using both, the firefox and the firefox-nightly window classes?