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

XDG basedir spec 0.8 #119

Open
phadej opened this issue May 9, 2021 · 3 comments
Open

XDG basedir spec 0.8 #119

phadej opened this issue May 9, 2021 · 3 comments
Labels
type: a-feature-request This is a request for a new feature.

Comments

@phadej
Copy link
Contributor

phadej commented May 9, 2021

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

It adds: There is a single base directory relative to which user-specific state data should be written. This directory is defined by the environment variable $XDG_STATE_HOME.

It would be great that plural $XDG_CONFIG_DIRS and $XDG_DATA_DIRS were supported as well.

I really don't like how #93 for XDG_RUNTIME_DIR was resolved I'll comment there more.

@Rufflewind Rufflewind added the type: a-feature-request This is a request for a new feature. label Jun 6, 2021
@Rufflewind
Copy link
Member

Rufflewind commented Jul 3, 2021

Current status:

@trskop
Copy link

trskop commented Jul 19, 2021

Spec v0.8 also introduced ~/.local/bin. There just isn't an environment variable override for it.

It seems that they are slowly adopting Systemd's file-hierarchy(7), which already did define ~/.local/bin. I'm guessing that they will adopt ~/.local/lib too in the future.

I'd be happy to help with ~/.local/bin, maybe as XdgBin?

Regarding XDG_RUNTIME_DIR, the usual default on UNIX-like systems is temp directory as it provides similar guarantees via sticky bit. See https://serverfault.com/questions/388840/good-default-for-xdg-runtime-dir.

@Rufflewind
Copy link
Member

XdgBin sounds fine for ~/.local/bin if there is a need for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: a-feature-request This is a request for a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants