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

Use $XDG_CONFIG_HOME for configuration, not $HOME/.dart #42557

Closed
jonasfj opened this issue Jul 2, 2020 · 2 comments
Closed

Use $XDG_CONFIG_HOME for configuration, not $HOME/.dart #42557

jonasfj opened this issue Jul 2, 2020 · 2 comments
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool.

Comments

@jonasfj
Copy link
Member

jonasfj commented Jul 2, 2020

I just noticed $HOME/.dart/. I think it might be better to use $XDG_CONFIG_HOME, which defaults to $HOME/.config/, instead of using $HOME.

In this case we would create config files in:

  • $XDG_CONFIG_HOME/dart/,

And default $XDG_CONFIG_HOME to $HOME/.config/ if it is not defined.
I suspect using $APPDATA instead of $XDG_CONFIG_HOME on Windows is fine.

I'm not sure what to do on Mac, maybe stackoverflow has a suggestion.

Not polluting the $HOME folder is generally nice, afaik ~/.config/ is also used by Chrome, spotify, discord, gcloud and many other judging by my ~/.config/ folder.

CC @jwren

@jonasfj jonasfj added the area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. label Jul 2, 2020
@julemand101
Copy link
Contributor

Looks related to:
#41560

@mraleph
Copy link
Member

mraleph commented Jul 2, 2020

Duplicate of #41560

@mraleph mraleph marked this as a duplicate of #41560 Jul 2, 2020
@mraleph mraleph closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool.
Projects
None yet
Development

No branches or pull requests

3 participants