Skip to content

Support `XDG Base Dir Spec 0.8`.

Edênis Freindorfer requested to merge denisfa/xserver:xdg-spec-change into master

This version of the spec (latest as of 27.12.2021) adds a variable $XDG_STATE_HOME that may be used for log files, as described:

...
$XDG_STATE_HOME defines the base directory relative to which user-specific
state files should be stored. If $XDG_STATE_HOME is either not set or
empty, a default equal to $HOME/.local/state should be used.

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, …)
...

Signed-off-by: Edênis Freindorfer Azevedo edenisfa@gmail.com

This is a rather simple change, so I opted for creating a PR directly. There is an issue opened related to this (#499), but should probably be considered outdated.

Merge request reports

Loading