https://bugs.kde.org/show_bug.cgi?id=508109
Bug ID: 508109
Summary: kwinrulesrc trivially easy to break with editor when
applying multiple times
Classification: Applications
Product: systemsettings
Version First 6.4.4
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: kcm_kwinrules
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
SUMMARY
Creating a new rule, saving with "Apply Initially", then "Apply Now" and then
"Apply Initially" again leaves kwinrulesrc with broken entries.
STEPS TO REPRODUCE
1. Create a new window rule and save.
```
[General]
count=1
rules=c81ec21a-0be7-4e42-a7b3-ab06b36f72c3
[c81ec21a-0be7-4e42-a7b3-ab06b36f72c3]
Description=Settings for looking-glass-client
above=true
aboverule=3
wmclass=looking-glass-client
wmclassmatch=1
```
2. Change the rule to "Apply now" `kwinrulesrc" is now empty for some reason.
3. Change the rule back to "Apply Initially".
OBSERVED RESULT
Contents of kwinrulesrc after every step:
Step 1:
```
[General]
count=1
rules=c81ec21a-0be7-4e42-a7b3-ab06b36f72c3
[c81ec21a-0be7-4e42-a7b3-ab06b36f72c3]
Description=Settings for looking-glass-client
above=true
aboverule=3
wmclass=looking-glass-client
wmclassmatch=1
```
Step 2:
file is empty
Step 3:
```
[c81ec21a-0be7-4e42-a7b3-ab06b36f72c3]
aboverule=3
```
EXPECTED RESULT
The rule is properly saved as in Step 1. "Apply Now" is also poorly explained
as not persistent, if this is even the desired behavior.
SOFTWARE/OS VERSIONS
```
Operating System: CachyOS Linux
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.0-5-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 64 GiB of RAM (58.5 GiB usable)
Graphics Processor: AMD Radeon Graphics
```
ADDITIONAL INFORMATION
This has been broken for as far as I can remember, so take "first version" with
the largest grain of salt imaginable.
--
You are receiving this mail because:
You are watching all bug changes.