Skip to content

XDG_DATA_HOME is not being taken into consideration to decide the User Resource Directory location #686

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

Open
feikname opened this issue Dec 15, 2017 · 0 comments
Labels
bug some feature is broken OS-Specific: GNU/Linux

Comments

@feikname
Copy link
Collaborator

feikname commented Dec 15, 2017

Instead, $HOME/.local/share is always used. which is the fallback directory for when XDG_DATA_HOME is empty or unset, as defined by the latest XDG Base Directory Specification.

Relevant output:

feik@name:~$ XDG_DATA_HOME=/home/feik openspades
2017/12/15 05:43:17 [Main.cpp:324] Package: OpenSpades 0.1.1
2017/12/15 05:43:17 [DirectoryFileSystem.cpp:46] Directory File System Initialized: ./Resources (Read-only)
2017/12/15 05:43:17 [DirectoryFileSystem.cpp:46] Directory File System Initialized: /usr/local/share/games/openspades/Resources (Read-only)
2017/12/15 05:43:17 [Main.cpp:400] XDG_DATA_HOME is /home/feik
2017/12/15 05:43:17 [DirectoryFileSystem.cpp:46] Directory File System Initialized: /home/feik/.local/share/openspades/Resources (Read/Write)

edit: ALWAYS→always (uppercase →lowercase)

@feikname feikname added the bug some feature is broken label Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug some feature is broken OS-Specific: GNU/Linux
Projects
None yet
Development

No branches or pull requests

1 participant