Bug 423451

Summary: Exclude state (dynamic) config info from krusaderrc to separate file, for allow sync Krusader settings via file between computers
Product: [Applications] krusader Reporter: Murz <MurzNN>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: krusader-bugs-null, till2.schaefer, voidpointertonull+bugskdeorg
Priority: NOR    
Version First Reported In: 2.7.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Murz 2020-06-24 15:02:27 UTC
I try to configure Krusader settings sync between computers, for have same settings on each computer.

Main settings file is located at ~/.config/krusaderrc, so I configure sync contents of it via chezmoi script.

But the problem is that krusaderrc file have many lines with state info, that have dynamic values and changed very often.

Example of state info:
---
[Private]
PopularUrls=file:///home/murz/SeaDrive/Shared with me/project/2020-02/,file:///home/murz/,gdrive:/murznn/,file:///home/murz/!temp/,file:///home/murz-local/,file:///home/murz-local/SeaDrive/
PopularUrlsRank=15,14,3,2,2,1,1,0,0,0,0,0,0,0,0,0
Start Position=0,0
Start Size=1920,1011
cmdline history=
---
And config file have many similar blocks with state info like this.

For solve config sync problem, will be good to move all state config values to separate file, for example krusaderstaterc (krusaderlocalrc), and store in krusaderrc only static values, that filled from Krusader Settings page.
Comment 1 Till Schäfer 2021-08-26 14:09:19 UTC
+1

KConfig also provides a mechanism for this: KSharedConfig::openStateConfig (see https://api.kde.org/frameworks/kconfig/html/classKSharedConfig.html#a5dcfbe60478f169753342d37212c1b58 )