Bug 476854 - Graphical layout state should use ${XDG_STATE_HOME}, not ${XDG_CONFIG_HOME}
Summary: Graphical layout state should use ${XDG_STATE_HOME}, not ${XDG_CONFIG_HOME}
Status: CONFIRMED
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Exherbo Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-11 21:29 UTC by Alex Elsayed
Modified: 2023-11-15 20:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Elsayed 2023-11-11 21:29:04 UTC
Version 0.8[1] of the XDG Base Directory Specification (released 2021-05-08) added a new directory, `${XDG_STATE_HOME}`. From the spec:

> The $XDG_STATE_HOME contains state data that should persist between
> (application) restarts, but that is not important or portable enough
> to the user that it should be stored in $XDG_DATA_HOME. It may contain:
> 
> - actions history (logs, history, recently used files, …)
> - current state of the application that can be reused on a restart
>   (view, layout, open files, undo history, …)

[1]: https://specifications.freedesktop.org/basedir-spec/0.8

This would significantly reduce churn of files in `${XDG_CONFIG_HOME}`, with significant benefits for use-cases where the config is immutable, under version control, or otherwise benefits from not changing due to incidental (rather than intentional) user action.
Comment 1 Nate Graham 2023-11-15 20:15:49 UTC
Not sure whether this would require changes to every Kxmlgui-using app, or if it could be done centrally. Keeping it open here just in case it's the latter.