You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is technically unrelated to the XDG spec but I suggest following this convention is better than following none. Of course, if someone can find a proper explicit convention that would be even better.
The text was updated successfully, but these errors were encountered:
It appears that XDG is suggesting $XDG_STATE_HOME for log files:
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, …)
One historical note (that may have influenced the systemd decision) is that earlier versions of the XDG Base Directory spec didn’t have XDG_STATE_HOME, so it left the place for logs, etc. up in the air.
XDG_STATE_HOME is definitely the correct place now.
user_log_dir
is currently documented as follows:but I can't find a source for this convention (see also #26).
systemd uses $XDG_CONFIG_HOME/log/ for its
LogsDirectory
:This is technically unrelated to the XDG spec but I suggest following this convention is better than following none. Of course, if someone can find a proper explicit convention that would be even better.
The text was updated successfully, but these errors were encountered: