From 44c40b43e46ce0fcf3e2e31fde8f27666bbd3807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 21 Nov 2018 02:30:40 +0100 Subject: Make current virtual console the default one for X --- roles/shell/bash/templates/bash_profile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2 index 4bcd09c..f622f67 100644 --- a/roles/shell/bash/templates/bash_profile.j2 +++ b/roles/shell/bash/templates/bash_profile.j2 @@ -5,7 +5,7 @@ [[ -f $XDG_CONFIG_HOME/bash/bashrc ]] && . $XDG_CONFIG_HOME/bash/bashrc {% if "graphical_vt" in features.get(profile, []) %} -if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then +if [[ ! $DISPLAY && $XDG_VTNR -eq {{ lookup('env', "XDG_VTNR") | default(1, true) }} ]]; then [[ -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 -- cgit v1.2.3