- system-config-directoryprocedure
Returns the location of the directory for configuration files. This obeys the XDG specification, so when the XDG_CONFIG_HOME environment variable is set, its value is used. When it's not set, it will default to $HOME/.config on UNIX and $APPDATA on Windows.