-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Adhere to XDG base directory spec #41560
Comments
I'm not aware of how widely used this XDG directory spec is. Following common pattens would be useful, if these are common patterns; I have not previously heard of this convention. cc @kevmoo @bwilkerson @jonahwilliams for thoughts |
I hadn't heard of it either, but then it's well outside my wheelhouse. Personally I have no preference about where we store cached files. |
… On Sun, Apr 19, 2020, 08:35 Brian Wilkerson ***@***.***> wrote:
I hadn't heard of it either, but then it's well outside my wheelhouse.
Personally I have no preference about where we store cached files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41560 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEFCWHMJQA6BDHS7NACWLRNMK3NANCNFSM4MLHM7DA>
.
|
@devoncarew @bwilkerson – I'm a fan of following conventions and not dirtying up directories. If at some point, if we want to entertain moving things around I'm not against this. 🤷 |
I'm not against it either. The first question is how to prioritize this against the other work that needs to be done. |
Here is a partial list of applications that have adopted it: They include:
To name some of the more notable ones |
Any update on the priority of this issue? |
The
Moving the conf file to the new location automatically is pretty nice too but will annoy some people using dotfile managers when their dotfiles have changed on their own. For caching files, it's already possible to set The XDG spec is being adopted in Flutter here: flutter/flutter#59430 |
Any update on this one? Is it being considered? |
any updates? The XDG convention makes it easier to organize files and not clutter the home directory. I know it may not be the top priority, but it would certainly help if you guys would implement it. |
In
Migration: If a config file exists in the new location we use it, otherwise we read config file from old location. |
@jonasfj did you mean to close the whole issue? I'd assume that analyzer also needs to change? |
Nope, that was unintentional... I think GitHub just decided to close it :) |
Hello, is there any progress?
|
This should be used to eventually fix dart-lang/sdk#41560. See dart-lang/sdk#49166 (comment)
This should be used to eventually fix dart-lang/sdk#41560. See dart-lang/sdk#49166 (comment) Test plan: ``` $ dart test 00:00 +4: All tests passed! ``` run `dart doc` and inspect docs for correctness.
This should be used to eventually fix dart-lang/sdk#41560. See dart-lang/sdk#49166 (comment) Test plan: ``` $ dart test 00:01 +16: All tests passed! ``` run `dart doc` and inspect docs for correctness.
This should be used to eventually fix dart-lang/sdk#41560. See dart-lang/sdk#49166 (comment) Test plan: ``` $ dart test 00:01 +16: All tests passed! ``` run `dart doc` and inspect docs for correctness.
This should be used to eventually fix dart-lang/sdk#41560. See dart-lang/sdk#49166 (comment) Test plan: ``` $ dart test 00:01 +16: All tests passed! ``` run `dart doc` and inspect docs for correctness.
Pull the dart and flutter configs by overriding the XDG_CONFIG_HOME and HOME directories as necessary. These hacks are required as dart and flutter currently only loosely respect the XDG Base Directory Specification and do not provide a proper mechanism for overriding the config file locations [1] [2]. [1] dart-lang/sdk#41560 [2] flutter/flutter#59430 Signed-off-by: Randolph Sapp <rs@ti.com>
Pull the dart and flutter configs by overriding the XDG_CONFIG_HOME and HOME directories as necessary. These hacks are required as dart and flutter currently only loosely respect the XDG Base Directory Specification and do not provide a proper mechanism for overriding the config file locations [1] [2]. [1] dart-lang/sdk#41560 [2] flutter/flutter#59430 Signed-off-by: Randolph Sapp <rs@ti.com>
This should be used to eventually fix dart-lang/sdk#41560. See dart-lang/sdk#49166 (comment) Test plan: ``` $ dart test 00:01 +16: All tests passed! ``` run `dart doc` and inspect docs for correctness.
Set the HOME variable to point to the WORKDIR to prevent any issues with dart runtime configs and cache. Required because of: dart-lang/sdk#41560 Signed-off-by: Randolph Sapp <rs@ti.com>
Set the HOME variable to point to the WORKDIR to prevent any issues with dart runtime configs and cache. Required because of: dart-lang/sdk#41560 Signed-off-by: Randolph Sapp <rs@ti.com>
Set the HOME variable to point to the WORKDIR to prevent any issues with dart runtime configs and cache. Required because of: dart-lang/sdk#41560 Signed-off-by: Randolph Sapp <rs@ti.com>
Set the HOME variable to point to the WORKDIR to prevent any issues with dart runtime configs and cache. Required because of: dart-lang/sdk#41560 Signed-off-by: Randolph Sapp <rs@ti.com>
Currently, on Linux, Dart stores some data in
~/.dart
and~/.dartServer
, which is annoying because it clutters up the user's home directory. Please consider following the XDG Base Directory spec by moving these files to appropriate locations specified in the environment variables$XDG_CONFIG_HOME
,$XDG_DATA_HOME
, and$XDG_CACHE_HOME
. (typically, and by default,~/.config
,~/.local/share
, and~/.cache
).dart --version
) = 2.7.2The text was updated successfully, but these errors were encountered: