Setting export XDG_DATA_HOME="$HOME/.local/share"
in ~/.profile
(and restarting) did not work for me and still gave me the KeyError: 'XDG_DATA_HOME'
error message.
Setting export XDG_DATA_HOME="$HOME/.local/share"
in /etc/profile
worked
or
setting XDG_DATA_HOME DEFAULT=@{HOME}/.local/share
in /etc/security/pam_env.conf/
also worked.
Pinned Comments
yochananmarqos commented on 2022-06-15 23:21 (UTC)
You must have the
XDG_DATA_HOME
variable set otherwise this program will not run!See https://wiki.archlinux.org/title/XDG_Base_Directory