Bug 405156

Summary: Window Rules Settings Aren't Being Saved
Product: [Plasma] kwin Reporter: starcastle550
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.15.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KWin window rule for Tutanota electron-based desktop app
KWin rule for Protonmail election-based desktop app

Description starcastle550 2019-03-06 22:30:41 UTC
SUMMARY


STEPS TO REPRODUCE
1. Create more than two window rules Or import  .kwinrules files
2. Or Create a window rule for an electron-based app (such as tutamail)
3. Close Settings Window and test if rules are working 

OBSERVED RESULT
Window rules aren't working. Opening the Settings Window and navigating to the Window Rules shows only two or three rules; the rest have disappeared...

EXPECTED RESULT
All window rules are saved and executed when necessary...

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.55.0-1
KDE Frameworks Version: 5.55.0-1
Qt Version: 5.12.1-1 | 5.12.1-2.1 | 5.12-2 (python-pyqt5 and some others)
ADDITIONAL INFORMATION
Comment 1 Martin Flöser 2019-03-24 18:49:28 UTC
Please attach the not working rules.
Comment 2 starcastle550 2019-03-26 21:53:54 UTC
Created attachment 119064 [details]
KWin window rule for Tutanota electron-based desktop app
Comment 3 starcastle550 2019-03-26 21:54:52 UTC
Created attachment 119065 [details]
KWin rule for Protonmail election-based desktop app
Comment 4 starcastle550 2019-03-26 21:57:04 UTC
(In reply to Martin Flöser from comment #1)
> Please attach the not working rules.

Here are the two I recall for certain being created and then immediately destroyed after I close the settings window
Comment 5 starcastle550 2019-03-26 21:59:47 UTC
(In reply to starcastle550 from comment #4)
> (In reply to Martin Flöser from comment #1)
> > Please attach the not working rules.
> 
> Here are the two I recall for certain being created and then immediately
> destroyed after I close the settings window

I forgot to mention that both Protonmail and Tutanota remain running in the system tray, which from where I usually re-open their main windows...
Comment 6 Martin Flöser 2019-03-27 05:15:08 UTC
Please don't use force temporarily if you want rules to persist.