Skip to content

Support XDG Base Directory Specfication #59430

@rajeshwarkohli

Description

@rajeshwarkohli

Use case

There is a XDG Base Directory Specification which supports keeping home directory in Linux environments tidy. Currently, flutter keeps its global configuration in $HOME/.flutter and $HOME/.flutter_tool_state. According to the above mentioned specification, it is advised to keep configuration under $HOME/.config directory by default.

Proposal

Allow user to set an environment variable to override default directory of flutter config files. This way it won't affect configuration of current users.

Alternatively, a fallback check to $HOME can be done if configuration does not exist in XDG base directory. This way XDG specification will be followed by default without having to set any environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-linuxBuilding on or for Linux specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions