X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Fshell%2Fbash%2Ftemplates%2Fbash_profile.j2;h=8ffd818a57714441b94cc3d66afdf2da5e1db44e;hb=a19180dfda49b96ff27911a71255ea3a504c4bb1;hp=9b9e86c9df32bdbe80ab15988e9f14d241d146a2;hpb=d0a835a44b3fd25267c3c8c6d3ed12e1e628816b;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2 index 9b9e86c..8ffd818 100644 --- a/roles/shell/bash/templates/bash_profile.j2 +++ b/roles/shell/bash/templates/bash_profile.j2 @@ -4,7 +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 + [[ -f "$XDG_STATE_HOME/bash/bashrc_temp" ]] && rm -f $XDG_STATE_HOME/bash/bashrc_temp exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 fi {% endif %}