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

Follow XDG Base Directory for cfgFile #28

Open
Ratakor opened this issue Aug 19, 2024 · 1 comment
Open

Follow XDG Base Directory for cfgFile #28

Ratakor opened this issue Aug 19, 2024 · 1 comment

Comments

@Ratakor
Copy link

Ratakor commented Aug 19, 2024

According to the XDG Base Directory Specification we should check the XDG_CONFIG_HOME environment variable before assuming that it is $HOME/.config. Thus we should check this variable then assign cfgFile to it + "/baton.json" or continue with the current behavior if it doesn't exist.

This might be useful for the implementation instead of using homedir.

@Ratakor
Copy link
Author

Ratakor commented Sep 11, 2024

Somehow I made a CLI very similar to baton but faster that supports this specification.
If anyone is interested it's here.

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

1 participant