https://bugs.kde.org/show_bug.cgi?id=507322

Matthieu <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #9 from Matthieu <[email protected]> ---
onfirming an equivalent symptom with a native Chromium PWA, and that the
workaround described in bug 527341 comment 15 also fixes the taskbar>

Environment:
- CachyOS, Plasma Wayland session
- plasma-workspace 6.8.2-1.1
- kwin 6.8.2-2.1
- ungoogled-chromium-bin 156.0.8078.79-1, installed with pacman, executable
/usr/bin/chromium (not Flatpak)
- A Deezer PWA installed through the browser

Before the workaround:
- The desktop/application-menu launcher and Alt+Tab showed the correct Deezer
icon.
- Only the taskbar used the Chromium icon: Deezer's icon appeared briefly
during startup, then was replaced by Chromium's.
- This also happened when launching Deezer with no regular Chromium window
open.

The PWA launcher is chrome-beencbhgfhcpdfcamlclakjciajlnhpa-Default.desktop,
with:
  Exec=/usr/bin/chromium --profile-directory=Default
--app-id=beencbhgfhcpdfcamlclakjciajlnhpa
  StartupWMClass=crx_beencbhgfhcpdfcamlclakjciajlnhpa
Its Icon entry points to the PWA's own PNG.

KWin queryWindowInfo reported:
  desktopFile: chrome-beencbhgfhcpdfcamlclakjciajlnhpa-Default
  resourceClass: chrome-beencbhgfhcpdfcamlclakjciajlnhpa-Default
  resourceName: chromium

The browser launcher /usr/share/applications/chromium.desktop contained:
  StartupWMClass=chromium

Workaround tested successfully:
1. Closed Chromium and the PWA.
2. Created ~/.local/share/applications/chromium.desktop as a copy of the system
browser launcher, omitting only its StartupWMClass line. There>
3. Ran kbuildsycoca6 --noincremental.
4. Restarted plasma-plasmashell.service via systemctl --user.
5. Relaunched the PWA: it now retains the correct Deezer icon in the taskbar.

The PWA's own .desktop file was not modified, and no KWin window rule was
added.

This result supports the shared resourceName / browser StartupWMClass collision
described in bug 527341, now marked as a duplicate of this rep>
https://bugs.kde.org/show_bug.cgi?id=527341#c15

Testing multiple different PWAs simultaneously and persistence across a reboot
have not yet been performed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to