Bug 481802

Summary: Folder view properties are inappropriately considered state data, when they're more like configuration data
Product: [Applications] dolphin Reporter: Justin Zobel <justin>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: duha.bugs, kfm-devel, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Justin Zobel 2024-02-25 06:08:48 UTC
Store config data in the correct place, ~/.config
Comment 1 duha.bugs 2024-02-25 14:11:11 UTC
Looks correct to me. 
The config changes are tracked in ~/.config/dolphinrc
State changes are tracked in  ~/.share/dolphin

Anything in particular you think doesn't belong into ~/.share ?
Comment 2 Nate Graham 2024-02-25 22:30:53 UTC
Indeed, what data are you talking about specifically?
Comment 3 Justin Zobel 2024-02-26 00:49:09 UTC
Sorting configuration data. e.g. sort by name, size, type, modified, etc. This is configuration information.
Comment 4 Nate Graham 2024-02-26 18:53:12 UTC
Yeah, this feels more like configuration information than state to me as well. But it's a fuzzy line.
Comment 5 duha.bugs 2024-02-26 20:03:24 UTC
I would argue they are state changes: This (like the show hidden file setting) are often changed unlike regular config settings that are only changed rarely.

Example usecase where this would be annoying: You have script that checks for changes in config files and then backs them up. 

I am not opposed to this changing, just trying to show that there are reasons not to do this.
Comment 6 Justin Zobel 2024-02-26 23:13:38 UTC
Yeah I can see how it would be fuzzy but from my perspective I "configured" dolphin to show the folder how I want it.

As for backups, it's simply a matter of changing the files you're backing up. Which is why restore tests are a wise thing to plan into backups.
Comment 7 Nate Graham 2024-02-27 19:15:51 UTC
I guess the question is, if you checked all your configs into git, would you be annoyed if changing it altered the config file? That's the common use case that people who want a strict separation of config and state (or how they perceive them) are looking to support.