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

feat: use XDG directories on Linux #1188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

flexagoon
Copy link

This removes the need for the ~/.dart_tool directory in user's HOME. It moves the config file to $XDG_CONFIG_HOME/dart_tool, and all other data to $XDG_DATA_HOME/dart_tool. If the old directory exists but the new one doesn't, the old location is used as a fallback. Otherwise, the new directories are created.

See dart-lang/sdk#41560 (this doesn't fully solve the issue, but it does get rid of one of the offending directories)


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

@andrewkolos andrewkolos removed their request for review November 3, 2024 23:17
@4e554c4c
Copy link

4e554c4c commented Nov 6, 2024

thanks for this PR! I was thinking that we could add some utilities for this to the cli_util package and then use them across any dart programs. What do you think? See dart-archive/cli_util#94

@pauliesnug
Copy link

can you make sure this also applies to macos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants