Bug 425210

Summary: Split configuration options and state values into separate RC files (konsolerc and konsolestaterc)
Product: [Applications] konsole Reporter: Murz <MurzNN>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, tcanabrava
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Murz 2020-08-11 06:48:51 UTC
At now KDE Konsole store configuration options and state values mixed in one ~/.config/konsolerc file, and overwrite this file with changes very frequently.

For example, on each main window size change or even download dialog size change - it overwrite config file with new settings, here is example:
---
[DownloadDialog Settings]
Height 1080=494
Width 1920=700

[Favorite Profiles]
Favorites=

[MainWindow]
Height 1080=1011
Height 768=705
State=AAAA/wAAAAD9AAAAAAAAB4AAAAPVAAAABAAAAAQAAAAIAAAACPwAAAAA
ToolBarsMovable=Disabled
Width 1366=1366
Width 1920=1920
Window-Maximized 1080x1920=true
Window-Maximized 768x1366=true
---

This give big problem with syncing Konsole settings between environments! And make hard other configuration management tasks, eg deploy new settings pack for all users via some configuration management tool.


STEPS TO REPRODUCE

1. Deploy konsolerc file with your some preferred settings.
2. Open Konsole, change window size, close Konsole.

OBSERVED RESULT

See that your konsolerc file is changed almost every time, when you use Konsole app.

EXPECTED RESULT

Main Konsole configuration file `konsolerc` must store only configuration settings, such as `TabBarPosition=Top`, `DefaultProfile=Profile 1.profile`, etc, and changed only when those settings are changed. 

And Konsole must not store temporary state settings in same file, together with permanent settings. 

Good solution can be splitting current `konsolerc` file to two files:
- `konsolerc` for permanent configuration settings, such as TabBarPosition option value.
- `konsole_staterc` for temporary state settings, such as window size and position.


ADDITIONAL INFORMATION

This problem have not only Konsole, but also most of other KDE-related apps! So maybe this issue must be converted to some recommendation (deprecation) for all KDE apps to not store state values in main RC file with permanent config settings?
Comment 1 Nate Graham 2020-08-12 16:12:29 UTC
Ideally this would be done at the KConfig level; marking as a duplicate of the bug that tracks that.

*** This bug has been marked as a duplicate of bug 397602 ***
Comment 2 tcanabrava 2020-08-12 16:34:41 UTC
I completely agree with this, this is actually not a problem with konsole but with many KDE software, we mix user configuration with state. It's in my radar for konsole.