opennetadmin/dcm — pull request #1 by brandt (2012-11-16 10:57:55+00:00)
Title: Added user config file check per the XDG Base Spec

This commit adds the [XDG Base Directory Spec][1] user-local config path to the list of locations searched for `dcm.conf`.

This spec allows users to consolidate their dotfiles to reduce the clutter in their `$HOME`.

### Per the spec:
1. Check if a path is specified in the environmental variable: `$XDG_CONFIG_HOME`
2. If undefined, use the default base path: `~/.config`
3. By convention, the config file is in a sub-directory named for the app: `dcm/dcm.conf`

Put it all together and the config path will normally be: `~/.config/dcm/dcm.conf`

If the path doesn't exist, the other dotfile paths are checked as usual, so existing users aren't left behind.

I've updated `README.md` accordingly.

[1]: http://standards.freedesktop.org/basedir-spec/latest/ "XDG Base Directory Specification"