Function: xdg-data-home
xdg-data-home is a byte-compiled function defined in xdg.el.gz.
Signature
(xdg-data-home)
Documentation
Return the base directory for user specific data files.
According to the XDG Base Directory Specification version
0.8 (8th May 2021):
"$XDG_DATA_HOME defines the base directory relative to which
user-specific data files should be stored. If $XDG_DATA_HOME is
either not set or empty, a default equal to $HOME/.local/share
should be used."
Source Code
;; Defined in /usr/src/emacs/lisp/xdg.el.gz
(defun xdg-data-home ()
"Return the base directory for user specific data files.
According to the XDG Base Directory Specification version
0.8 (8th May 2021):
\"$XDG_DATA_HOME defines the base directory relative to which
user-specific data files should be stored. If $XDG_DATA_HOME is
either not set or empty, a default equal to $HOME/.local/share
should be used.\""
(xdg--dir-home "XDG_DATA_HOME" "~/.local/share"))