Set XDG variables too for non standard home dirs

This commit is contained in:
Kron4ek 2023-12-29 14:28:13 +03:00 committed by GitHub
parent fd3ad3bff3
commit 269c899cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ if (( EUID == 0 )) && [ -z "$ALLOW_ROOT" ]; then
fi
# Conty version
script_version="1.24.3"
script_version="1.25"
# Important variables to manually adjust after modification!
# Needed to avoid problems with mounting due to an incorrect offset.
@ -630,8 +630,10 @@ run_bwrap () {
*)
NEW_HOME=/home/"${USER}"
non_standard_home+=(--tmpfs /home \
--bind "${HOME}" "${NEW_HOME}" \
--setenv "HOME" "${NEW_HOME}")
--bind "${HOME}" "${NEW_HOME}" \
--setenv "HOME" "${NEW_HOME}" \
--setenv "XDG_CONFIG_HOME" "${NEW_HOME}"/.config \
--setenv "XDG_DATA_HOME" "${NEW_HOME}"/.local/share)
;;
esac
fi