# -*- shell-script -*-
# /etc/X11/Xsession.d/95unburden_home_dir
# This file is sourced by Xsession(5), not executed.

UNBURDEN_BASENAME=${UNBURDEN_BASENAME:-unburden-home-dir}

if [ -e /etc/default/"${UNBURDEN_BASENAME}" ]; then
    . /etc/default/"${UNBURDEN_BASENAME}"
fi

if [ -e "${HOME}/.${UNBURDEN_BASENAME}" ]; then
    . "${HOME}/.${UNBURDEN_BASENAME}"
fi

if [ -e "${XDG_CONFIG_HOME:-$HOME/.config}/${UNBURDEN_BASENAME}/config" ]; then
    . "${XDG_CONFIG_HOME:-$HOME/.config}/${UNBURDEN_BASENAME}/config"
fi

if [ "${UNBURDEN_HOME}" = "true" ] || \
   [ "${UNBURDEN_HOME}" = "yes" ]; then

    unburden-home-dir
fi
