Skip to content

Move config directory (& state?) to XDG paths #144

@paravoid

Description

@paravoid

(Thanks for writing gmailctl and releasing it as open source!)

The proliferation of dot files/directories in users' home directories, the poor portability of paths like ".app" as well as the mixing of config and state are problems that are being addressed by the (now ubiquitous) freedesktop.org XDG base directory specification. This specifies directories like ~/.config/gmailctl (and possibly ~/.local/share/token.json) on Linux systems, and equivalent paths on OS X & Windows, unless overriden by environment variables. It'd be great if gmailctl moved its paths to match the XDG specification.

The implementation should be easy enough, but there are multiple Go libraries implementing this as well¹:

(All but the last are used enough to exist as a Debian package, if that matters)

1: There is a certain irony in a proliferation of libraries trying to address a proliferation problem…

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureNew feature or requestlifecycle/keep-aliveDenotes an issues or PR that should never be considered stale.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions