datamon
datamon copied to clipboard
Config directories
For global configuration of datamon we will need to provide a place to store the configuration in the home directory.
Config directories
Use OS specific config directories.
OSX
This means asking for the Application Support directory:
Linux
This means using the contents of $XDG_CONFIG_DIRS:
Windows
%APPDATA%
C:\Users\username\AppData\Roaming
Moving content from slack posted by @casualjim
https://github.com/OpenPeeDeeP/xdg https://github.com/shibukawa/configdir datamon is not following OS conventions to store config files, opting to put it in the cluttered $HOME instead those libraries provide a different basepath for linux, osx and windows to store config files in the right locations
Will try to get this done before we cut the next release and move to a better way of shipping the CLI.