Spyhawk/pacaur — Issue #54: Support XDG standard properly.
Author: evaryont
Created: 2011-12-27 02:59:21+00:00
State: open

Instead of hardcoding `$HOME/.config` in your script, you should check `$XDG_CONFIG_HOME`. You can use the following to check, in one line:

config_dir=${XDG_CONFIG_HOME:-${HOME}/.config}

Also, if you want to go 100% XDG, the config file should be in `/etc/xdg/pacaur/` and you should check each dir in `$XDG_CONFIG_DIRS` but that's...eh. :-P