Function: xdg-config-dirs
xdg-config-dirs is a byte-compiled function defined in xdg.el.gz.
Signature
(xdg-config-dirs)
Documentation
Return the config directory search path as a list.
According to the XDG Base Directory Specification version
0.8 (8th May 2021):
"$XDG_CONFIG_DIRS defines the preference-ordered set of base
directories to search for configuration files in addition to
the $XDG_CONFIG_HOME base directory. The directories in
$XDG_CONFIG_DIRS should be separated with a colon ':'.
"If $XDG_CONFIG_DIRS is either not set or empty, a value equal to
/etc/xdg should be used."
Source Code
;; Defined in /usr/src/emacs/lisp/xdg.el.gz
(defun xdg-config-dirs ()
"Return the config directory search path as a list.
According to the XDG Base Directory Specification version
0.8 (8th May 2021):
\"$XDG_CONFIG_DIRS defines the preference-ordered set of base
directories to search for configuration files in addition to
the $XDG_CONFIG_HOME base directory. The directories in
$XDG_CONFIG_DIRS should be separated with a colon ':'.
\"If $XDG_CONFIG_DIRS is either not set or empty, a value equal to
/etc/xdg should be used.\""
(let ((env (getenv "XDG_CONFIG_DIRS")))
(if (or (null env) (string= env ""))
'("/etc/xdg")
(parse-colon-path env))))