stack_wallet icon indicating copy to clipboard operation
stack_wallet copied to clipboard

Allow ".stackwallet" directory to meet XDG Base Directory spec

Open et-rnal opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Currently on Linux, running stack wallet produces a "$HOME/.stackwallet" directory.

Expected Behavior

I suggest adding the ability to configure where this directory goes so that we may have it placed in "$XDG_CONFIG_HOME" (~/.config) or "XDG_DATA_HOME" (~/.local/share)

This could be accomplished by having it use one of those variables by default, checking if they're present, or allowing the user to configure it.

Reproduce Steps

Run stack wallet.

Environment

Any GNU/Linux environment

Logs

No response

Further Information

XDG Base Directory Specification The above is the link to the specification

ArchWiki XDG Base Directory The above link has a non-exhaustive list of compliant projects

et-rnal avatar Oct 24 '24 09:10 et-rnal