Bug 423451 - Exclude state (dynamic) config info from krusaderrc to separate file, for allow sync Krusader settings via file between computers
Summary: Exclude state (dynamic) config info from krusaderrc to separate file, for all...
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.7.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-24 15:02 UTC by Murz
Modified: 2024-01-24 02:39 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 )