bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

Honor XDG_CONFIG_HOME / XDG spec #39

Closed derimagia closed 7 years ago

derimagia commented 7 years ago

Would be nice if the config file wasn't hardcoded and it supported the XDG standards - https://wiki.archlinux.org/index.php/XDG_Base_Directory_support https://specifications.freedesktop.org/basedir-spec/latest/

Probably should default it to something like $XDG_CONFIG_HOME/slackcat/config if XDG_CONFIGHOME exists. Better support would set the config file to use xdg if any of the XDG* variables exist and default XDG_CONFIG_HOME to $HOME/.config as per the standard, falling back to $HOME/.slackcat all together but I think just honoring the variable is a win.

The number of applications supporting it is increasing, and at the very least i think an environment variable should exist for overwriting.

bcicen commented 7 years ago

Thanks for the suggestion @derimagia -- support for XDG_CONFIG_HOME per standard has been added here and will be included with the next release

bcicen commented 7 years ago

XDG basedir support is now available in the latest release