Skip to content

feat: use XDG directories on Linux #1188

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

Closed
wants to merge 2 commits into from
Closed

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?

@aaravrav
Copy link

@jonasfj Would this be merged?

@misterhackerman
Copy link

misterhackerman commented Mar 22, 2025

does this need anything to work?
(to be merged)

@aaravrav
Copy link

aaravrav commented Aug 1, 2025

/cc @srawlins @bkonyi

@srawlins
Copy link
Member

srawlins commented Aug 3, 2025

CC @bwilkerson . I'm not sure who maintains unified_analytics these days.

@bkonyi
Copy link
Contributor

bkonyi commented Aug 5, 2025

CC @bwilkerson . I'm not sure who maintains unified_analytics these days.

The Dash Developer Services team does, although there hasn't really been any active work in this area for awhile.

We're actively deciding where we want all of the Dart / Flutter tools to write state in dart-lang/sdk#41560, but I don't think we're going to move forward with this PR at this time (please see the discussion in the linked issue).

@bkonyi bkonyi closed this Aug 5, 2025
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.

7 participants