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 basedir spec #6

Open
qfox opened this issue Feb 28, 2016 · 4 comments
Open

Support XDG basedir spec #6

qfox opened this issue Feb 28, 2016 · 4 comments

Comments

@qfox
Copy link
Contributor

qfox commented Feb 28, 2016

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

Why .bemconf.js?

@tadatuta
Copy link
Member

code highlight, linters, all these things

@qfox
Copy link
Contributor Author

qfox commented Feb 28, 2016

When we decide to cleanup all this trash?

Why we walking on the streets with known rakes?

@tadatuta
Copy link
Member

What's your proposal? :)

@qfox
Copy link
Contributor Author

qfox commented Feb 28, 2016

For resolving algorithm, look for each directory first match by name:

  • .config/bem - local in the root of current directory as file bem (if bem is a file)
  • .config/bem/common.json - or local ... as the file common.json inside bem directory (if bem is a directory)
  • .bemconf.json - also, we can make a simple .bemconf.json file for nested directories only.

And the same for per-user configuration, but with ~/ at start (looks like we don't need .bemconf.json here):

  • ~/.config/bem
  • ~/.config/bem/common.json

And for per-server conf (we don't have this atm):

  • /etc/bem
  • /etc/bem/common.json

Besides, there are XGD_CONFIG_HOME and other env variables, that should be used for basedir convention (xdg spec).

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

No branches or pull requests

2 participants