Bug 481802 - Folder view properties are inappropriately considered state data, when they're more like configuration data
Summary: Folder view properties are inappropriately considered state data, when they'r...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-25 06:08 UTC by Justin Zobel
Modified: 2024-02-27 19:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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