Skip to content

Respect the XDG Base Directory specification for configs#204

Open
lhanson wants to merge 2 commits intojpbruinsslot:masterfrom
lhanson:xdg-spec
Open

Respect the XDG Base Directory specification for configs#204
lhanson wants to merge 2 commits intojpbruinsslot:masterfrom
lhanson:xdg-spec

Conversation

@lhanson
Copy link
Contributor

@lhanson lhanson commented Sep 5, 2019

Rather than assuming a configuration file at ~/.slack-term, respect
the user's choice per the XDG Base Directory specification
to find the configuration.

Uses a cross-platform XDG library (godoc) to abstract the details of the
specification and encompass any future changes.

After merging, the wiki home page
should be updated to reflect the new configuration location.

This closes #170 and closes #203.

Rather than assuming a configuration file at `~/.slack-term`, respect
the user's choice per the XDG Base Directory specification
(https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html)
to find the configuration.

Uses a cross-platform XDG library to abstract the details of the
specification and encompass any future changes
(https://github.com/OpenPeeDeeP/xdg, https://godoc.org/github.com/OpenPeeDeeP/xdg).

After merging, the [wiki home page](https://github.com/erroneousboat/slack-term/wiki)
should be updated to reflect the new configuration location.

This closes jpbruinsslot#170 and closes jpbruinsslot#203.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XDG Base Directory Support Configuration file path

1 participant