-
Notifications
You must be signed in to change notification settings - Fork 340
Flutter Devtools create file in my $HOME and don't allow for relocation #7370
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
Comments
My concern with changing the location of the @christopherfujino have there been any discussions around the location of the |
I'll risk a statement that Flutter is also doing the wrong thing with not respecting XDG Base Directory Specification – see flutter/flutter#59430. Ditto for Dart – see dart-lang/sdk#41560. I had some spare time recently and spent it cleaning up my (sweet sweet) |
not that I'm aware of. I'm not against changing this, if we could come into alignment. I would just add, however, that while XDG is a nice idea, my current debian installation doesn't have $XDG_STATE_HOME set. Also, my understanding is that Windows and macOS don't follow XDG at all. That is to say, this migration would principally be of benefit to those Linux users who happened to have $XDG_STATE_HOME set. |
anecdotal argument: I am on macOS and chose to follow XDG (=set the env vars) to keep my home dir clean :-) |
ok, but by that argument, we could name the variable |
yeah I guess? Anyway
I'm all for that. I guess backward compatibility is the main concern, right? |
polite ping :)
|
Uh oh!
There was an error while loading. Please reload this page.
In my home directory the following directory is created whenever I use devtools:
Content of that single file is:
I don't like when programs clutter my personal
~
. I very much echo sentiment of this article. Unfortunately it looks like the location of that file is currently hardcoded (example).Therefore I'd like for Flutter DevTools to respect XDG Base Directory Specification, so that the
.devtools
file could be stored in (e.g.)~/.local/state
, that is,$XDG_STATE_HOME
.To support migration, Flutter Devtools would continue to use
~/.flutter-devtools/.devtools
if it exists. If it does not exist, it should default to the appropriate XDG base directory.I am willing to contribute this feature, if only the maintainers of this project agree with this suggestion.
The text was updated successfully, but these errors were encountered: