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.
+1 KConfig also provides a mechanism for this: KSharedConfig::openStateConfig (see https://api.kde.org/frameworks/kconfig/html/classKSharedConfig.html#a5dcfbe60478f169753342d37212c1b58 )