-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for $XDG_STATE_HOME #2106
Conversation
Hi, Thanks for this PR. There's a discussion about what to move to the XDG state directory in this issue: #1747. The specification is not very clear about what should be moved anyway. Any thoughts from other people? |
No problem, the default for those can simply be changed back to |
By the way I'm not even sure if the weechat.log file should be in $XDG_STATE_HOME or $XDG_RUNTIME_DIR directory, as it's a temporary log file used for lock (it's used to prevent two weechat instances to use the same home directory). |
Considering that |
Thanks, I squashed commits and merged without the changes in logger plugin. |
The most recent version of the XDG Base Directory Specification from 2021 introduces the new
$XDG_STATE_HOME
directory for non-essential "state" data such as history and logs.This PR adds support for this directory via the
weechat_state_dir
property, and uses this directory by default from now on to store log files. Closes #1747.