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
The XDG standard says user-specific data files should be written in $XDG_DATA_HOME which defaults to $HOME/.local/share.
Appdirs explicitly breaks XDG_DATA_HOME specification and returns a path based on $XDG_CONFIG_HOME, ~/.config/appname instead of ~/.local/share/appname for user_data_dir.
This is not at all "subject to some interpretation", this is as clear as day in the XDG spec:
Quote:
There is a single base directory relative to which user-specific data files should be written. This directory is defined by the environment variable $XDG_DATA_HOME
and later:
$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
No ifs or buts. It doesn't matter at all if some apps decide not to respect the standard, a library should do the right thing, not break standards for everybody 'just because'.
The commit 74cfeb8 fixes this issue.
There is also a linux-fixes branch in my fork that also undoes the broken mangling of the case on Linux. Linux is case sensitive and messing with the case behind user's back is not a wise idea.
The XDG standard says user-specific data files should be written in $XDG_DATA_HOME which defaults to $HOME/.local/share.
Appdirs explicitly breaks XDG_DATA_HOME specification and returns a path based on $XDG_CONFIG_HOME, ~/.config/appname instead of ~/.local/share/appname for user_data_dir.
This is not at all "subject to some interpretation", this is as clear as day in the XDG spec:
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Quote:
There is a single base directory relative to which user-specific data files should be written. This directory is defined by the environment variable $XDG_DATA_HOME
and later:
$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
No ifs or buts. It doesn't matter at all if some apps decide not to respect the standard, a library should do the right thing, not break standards for everybody 'just because'.
To fix this, commit 362f390 should be reverted.
The text was updated successfully, but these errors were encountered: