XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
Even if the environment variable is configured, it's not considered, and the default location is used anyway. This fixes that.
Spek creates
~/.config/spek/
on startup, and does not respect the XDG Base Directory Specification correctly:Even if the environment variable is configured, it's not considered, and the default location is used anyway. This fixes that.