Pass env variables explicitly to systemd

This commit is contained in:
2024-04-25 08:02:22 +02:00
parent a6d672c353
commit 64e1e6d5d0

View File

@@ -65,8 +65,14 @@ mkdir -p "${feature_dir}"
touch "${feature_dir}"/gpg_agent touch "${feature_dir}"/gpg_agent
{% endif %} {% endif %}
# Make all environment variables also usable in the systemd user instancee # Make important environment variables also usable in the systemd user instance
systemctl --user import-environment systemd_envs=(
DISPLAY
GNUPGHOME
PATH
ACPI_LID_NAME
)
systemctl --user import-environment "${systemd_envs[@]}"
# exec startx breaks some logind fuckery, without exec it works # exec startx breaks some logind fuckery, without exec it works
if [[ -z $DISPLAY ]] ; then if [[ -z $DISPLAY ]] ; then