Bug 499950 - Window Rules to force Desktop file stop working in Plasma 6.3
Summary: Window Rules to force Desktop file stop working in Plasma 6.3
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: 6.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-02-13 04:11 UTC by Ninjoe
Modified: 2025-02-20 02:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.