From c235f9bea368316f1c1a441ebf6877e05e7df21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 4 Nov 2018 00:37:08 +0100 Subject: Add a temporary bashrc when updating pam_environment --- roles/shell/bash/templates/bash_profile.j2 | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/shell/bash/templates/bash_profile.j2') diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2 index 06210fa..9b9e86c 100644 --- a/roles/shell/bash/templates/bash_profile.j2 +++ b/roles/shell/bash/templates/bash_profile.j2 @@ -4,6 +4,7 @@ {% if "graphical_vt" in features.get(profile, []) %} if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + [[ -f "$HOME/.bashrc_temp" ]] && rm -f $HOME/.bashrc_temp exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 fi {% endif %} -- cgit v1.2.3