Bug 442625

Summary: Window rules export/import doesn't respect order
Product: [Applications] systemsettings Reporter: Dominik Kummer <admin>
Component: kcm_kwinrulesAssignee: Dominik Kummer <admin>
Status: ASSIGNED ---    
Severity: minor CC: isma.af, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.22.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: demo ruleset
kwin_x11 coredump

Description Dominik Kummer 2021-09-18 01:44:52 UTC
Created attachment 141662 [details]
demo ruleset

SUMMARY
Window rules export and import results in a different rule order.
Furthermore, if rules are deleted before import is done, Kwin goes mad and crashes.

STEPS TO REPRODUCE
1. export ruleset
2. delete rules
3. import ruleset

OBSERVED RESULT
Windows and panels strange behaviour

EXPECTED RESULT
Exported ruleset imported in exactly the same order without confusing Kwin.
Comment 1 Nate Graham 2021-09-21 22:40:59 UTC
> Furthermore, if rules are deleted before import is done, KWin goes mad and crashes.
Please report additional issues in additional bug reports. :) See https://community.kde.org/Get_Involved/Issue_Reporting#One_issue_per_Bugzilla_ticket
Comment 2 Dominik Kummer 2021-09-21 23:28:46 UTC
Created attachment 141781 [details]
kwin_x11 coredump
Comment 3 Dominik Kummer 2021-09-21 23:31:27 UTC
True but unfortunately my backtraces for crash reports are unusable (lack of debugging symbols on Archlinux) I added the coredump from shortly before I reported the issue on Sept 18th.

I think the crash was tightly related to this reported issue, because it happened a few seconds after I recognized the different ordered ruleset after import.

I did the procedure on a fresh user account.
Comment 4 Dominik Kummer 2021-09-21 23:33:59 UTC
Get_Involved/Issue_Reporting#One_issue_per_Bugzilla_ticket
great article btw! thanks!