Skip to content

Follow XDG base directory specification instead of using ~/.step #461

Open
@pxeger

Description

@pxeger

What would you like to be added

On Linux, Step CLI should follow the XDG Base Directory specification for storing data (essentially, use $XDG_CONFIG_HOME/step rather than ~/.step by default).

I am aware you can specify a custom path with $STEPPATH, but the XDG spec is a standard that has predictable locations for users without further configuration. $STEPPATH should probably still override it if set though.

Why this is needed

This reduces clutter in the user's home directory and gives them more flexibility in deciding where and how to store their data.

If backwards-compatibility is an issue, I'd suggest using ~/.step if that location exists, and otherwise using the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds triageWaiting for discussion / prioritization by team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions