Bug 442625 - Window rules export/import doesn't respect order
Summary: Window rules export/import doesn't respect order
Status: ASSIGNED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kwinrules (show other bugs)
Version: 5.22.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dominik Kummer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-18 01:44 UTC by Dominik Kummer
Modified: 2024-05-02 13:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
demo ruleset (3.32 KB, text/plain)
2021-09-18 01:44 UTC, Dominik Kummer
Details
kwin_x11 coredump (267.09 KB, text/plain)
2021-09-21 23:28 UTC, Dominik Kummer
Details

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