Bug 466662 - Application-Specific settings do not survive a reboot.
Summary: Application-Specific settings do not survive a reboot.
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.27.2
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-01 16:03 UTC by Evert Vorster
Modified: 2023-03-05 23:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evert Vorster 2023-03-01 16:03:18 UTC
SUMMARY
***
I have an application that I do not want to show up in the taskbar. 
So, I click on the little icon in the top left of the window frame, and then go to application-specific settings. 
Then I add a property for all windows to skip the taskbar. 
I first apply it now, then stick it to apply initially. 
This seems to work only for the session. 
Once I reboot, the property for this application is gone.
***


STEPS TO REPRODUCE
1. Click on application icon in window titlebar of application
2. Select "More actions" then "Application specific settings"
3. Select "All window types" and exact match for the application
4. Add property "Skip taskbar"
5. Apply. See that indeed this application disappears from the taskbar.

OBSERVED RESULT
Upon reboot, this applicaiton is showing up in the taskbar again!
This is an application that is auto-started. It's my password manager, so I want it running all the time, but I don't want it eating up the slot in the taskbar. 

EXPECTED RESULT
I expect this special application settings to be persistent.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.1-AMD-znver2 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 36.9 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20T8001JUS
System Version: ThinkPad E15 Gen 2

ADDITIONAL INFORMATION
Not sure if it's because this application is set to auto run, or if the special settings goes away on reboots. As this is a laptop, it gets rebooted often.
Comment 1 Ismael Asensio 2023-03-01 18:59:42 UTC
Thanks for your report.

To try and understand what is happening, it might be that "Apply" is not catching the application start-up, specially if the app changes the window properties on start-up

Can you try to set the policy to "Force"?

Also, if you can attach the file ~/.config/kwinrulesrc that can be helpful. 
Also check in Systemsettings (Window Rules) if the Rule you set is still stored.

Thanks!
Comment 2 Evert Vorster 2023-03-01 20:32:26 UTC
Hi Ismael. 

Thanks for looking at this. 
It is good to know some tricks to try. However, after trying several times, and the application always forgetting it's settings, something weird happened. 

After the most recent reboot it suddenly started remembering it's settings. 
It's the weirdest thing ever. I'll give it a couple of reboots, and if it keeps on remembering it's settings, I'll close this report.
Comment 3 Evert Vorster 2023-03-05 23:07:31 UTC
This problem is now completely gone. 
Since this is a rolling update system, there was probably an update that fixed it, but I would not know which one. 

Thanks, everybody, for looking