Bug 505931 - VDs in exported/imported rules should be persistent for different systems (non-matching VDs UUIDs)
Summary: VDs in exported/imported rules should be persistent for different systems (no...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kwinrules (other bugs)
Version First Reported In: 6.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-21 17:31 UTC by EatMe
Modified: 2025-06-26 15:39 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EatMe 2025-06-21 17:31:46 UTC
I've noticed since at least Plasma 6.3.0 that when one restores Window Rules from file that the size and position of a app will conform to the rules one has set. When it comes to assigned virtual desktop one must go into the apps rule and set it for the desktop it was originally assigned to cause it always says none selected. I have no idea why that setting isn't saved as well.
Comment 1 TraceyC 2025-06-26 00:06:16 UTC
Thanks for filing this bug report. Unfortunately there isn't enough information for us to try to figure out what's happening. Please add information about your system as requested in the bug report template. Copy and paste this with the information into a new comment.

SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION


Thanks for your understanding
Comment 2 EatMe 2025-06-26 13:12:46 UTC
STEPS TO REPRODUCE
Open Window Rules in System Settings
Import my saved .kwinrule file
What the window populate with my saved rules
Apply

OBSERVED RESULT
Launch Dolphin and it opens on the desktop I happen to be on instead of it's assigned desktop

EXPECTED RESULT
For Dolphin to open on it assigned desktop and switch to that desktop

SOFTWARE/OS VERSIONS
Arch based distros update to Plasma 6.4.1

KDE Frameworks Version:  6.15.0
Qt Version: 6.9.1

ADDITIONAL INFO
Rightclick the title bar of any app that I have rules set for and goto Special Application Settings and size and position are correctly and set, but virtual desktop says none selected and I have to reassign the app to it's desktop.  It's not a matter of the desktops not being created yet cause I create those, install all my apps, then add the rules.
Comment 3 Ismael Asensio 2025-06-26 13:41:28 UTC
> It's not a matter of the desktops not being created yet cause I create those, install all my apps, then add the rules.

If I understood correctly, the rules that contains Virtual Desktops are exported from one PC/user, and on a new PC/account you create new Virtual Desktops and import the rules, right?

Yeah, this doesn't work. The new VDs you create have different IDs than those saved in the exported rules, so the rules cannot find them.
You can check the IDs in the [Desktops] section in ~/.config/kwinrc
Comment 4 EatMe 2025-06-26 14:08:54 UTC
Then might I suggest that you please turn this into a feature request? 

1. For a way to backup and restore the ID's
or
2. make it where the ID's do not matter
Comment 5 Ismael Asensio 2025-06-26 14:25:06 UTC
(In reply to TheTechieLife from comment #4)
> Then might I suggest that you please turn this into a feature request? 
> 
> 1. For a way to backup and restore the ID's
> or
> 2. make it where the ID's do not matter

Yeah, that seems perfectly fair
Comment 6 EatMe 2025-06-26 15:39:51 UTC
Thanks a lot, much appreciated. Stay safe and have a good one.