Skip to content
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

Support XDG-specification #277

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mstruebing
Copy link

see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html

This is backwards compatible with the old _Z_DATA env-var but enhances
the user experiences with the XDG-specification.

closes #267

see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html

This is backwards compatible with the old `_Z_DATA` env-var but enhances
the user experiences with the XDG-specification.

closes rupa#267
z.sh Outdated

local datafile="${_Z_DATA:-$HOME/.z}"
# fallback to default XDG directory
local DEFAULT_DATA_DIR="$HOME/.local/share/$DIRECTORY_NAME"
Copy link

@Konfekt Konfekt Mar 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is rather state than share regarding the latest XDG standard?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will change it - seems like a good case for state you are right.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Konfekt updated in my latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support XDG_BASE_DIRECTORY
2 participants