Bug 499950

Summary: Window Rules to force Desktop file stop working in Plasma 6.3
Product: [Plasma] kwin Reporter: Ninjoe <niiinjoe>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: isma.af, nate
Priority: NOR Keywords: regression
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ninjoe 2025-02-13 04:11:14 UTC
SUMMARY
After upgrading to Plasma 6.3 (Fedora 41), my exisiting window rules for setting window icon by forcing desktop file stop working. Specifically, I use window rule to set icon for different Chromium profile window on task manager.

BTW, I notice that many apps that previously show generic Wayland icon now show their own icon correctly. So maybe something new here override the window rule?

STEPS TO REPRODUCE
1. Create a desktop file for a Chromium profile, set icon to a new one.
2. Create a new Window Rule
3. Detect properties from a Chromium window, match window class and force desktop file name to desktop file in 1.
3. Apply

OBSERVED RESULT
- Task manager icon show Chromium icon.

EXPECTED RESULT
- Task manager show set icon from desktop file. This work as expected in Plasma 6.2.

SOFTWARE/OS VERSIONS
Linux: Fedora 41 (Wayland)
KDE Plasma Version: 6.3
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Comment 1 Vlad Zahorodnii 2025-02-19 16:00:21 UTC
Please run chromium with WAYLAND_DEBUG=1 environment variable and post the output here
Comment 2 Ninjoe 2025-02-20 02:42:10 UTC
It seems this is Chromium problem. After I switch from using --app-id (Chromium-generated app shortcut) to --app, Window Rule work as expected.