Skip to content

RFC 1005 does not respect XDG Base Directory Specification #32

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Fogapod opened this issue Apr 25, 2021 · 2 comments
Closed

RFC 1005 does not respect XDG Base Directory Specification #32

Fogapod opened this issue Apr 25, 2021 · 2 comments

Comments

@Fogapod
Copy link

Fogapod commented Apr 25, 2021

XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html

~/.edgedb/projects folder structure is mentioned multiple times in RFC 1005: https://github.com/edgedb/rfcs/blob/master/text/1005-edgedb-project.rst

This is an inconvenience for me and many other Linux desktop users, there are too many apps that think they're special and should have a folder in home directory.

~/.edgedb should be a last resort folder in case $XDG_CONFIG_HOME is not defined.

This should be relatively easy to implement: checking additional set of env variables before writing/reading config files. I suggest making changes to RFC and implementations before 1.0.

related: geldata/gel-cli#308

@Fogapod Fogapod changed the title RFC 1005 does not respect XDG specification RFC 1005 does not respect XDG Base Directory Specification Apr 25, 2021
@elprans
Copy link
Member

elprans commented Apr 26, 2021

We've had some discussions about this last year and the consensus was that it's simpler to have a consistent directory across all distros/OSes by default, mostly for the ease of documentation and troubleshooting. That said, we can consider using platform-specific paths again (FWIW, cargo seems to be moving in that direction as well: rust-lang/cargo#9178)

@elprans
Copy link
Member

elprans commented Jan 20, 2022

We've switched to XDG-conforming layout on Linux in Beta 3: https://www.edgedb.com/blog/edgedb-beta-3-ross#if-you-have-an-older-version-installed

@elprans elprans closed this as completed Jan 20, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants