Open rpdelaney opened 5 years ago
The spec has been updated since, now there is $XDG_STATE_HOME
for that:
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, …)
Issue / Suggestion
I find that state data is stored in
$XDG_CONFIG_HOME/mpsyt/
, including (but not limited to) in these files:input_history
play_history.m3u
playlists/*
(this is arguably configuration data too, but it's a grey area I think)Users who do not expect state data to be stored here may accidentally back it up and synchronize it across systems improperly. Configuration data are fine, but prefer storing state data somewhere in
$XDG_DATA_HOME
to conform to the freedesktop.org / XDG standard.Reference: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Your Environment