Skip to content

Support XDG-specification#277

Open
mstruebing wants to merge 2 commits intorupa:masterfrom
mstruebing:feat/267/xdg
Open

Support XDG-specification#277
mstruebing wants to merge 2 commits intorupa:masterfrom
mstruebing:feat/267/xdg

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