summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-21 02:30:40 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-21 02:30:40 +0100
commit44c40b43e46ce0fcf3e2e31fde8f27666bbd3807 (patch)
treec5be07308484369b7ee8586c3f9b010cfa3d4483
parent39749dd76fb02744f26c68054a9955cbe3e26849 (diff)
downloadAnsible-44c40b43e46ce0fcf3e2e31fde8f27666bbd3807.tar.gz
Ansible-44c40b43e46ce0fcf3e2e31fde8f27666bbd3807.tar.zst
Ansible-44c40b43e46ce0fcf3e2e31fde8f27666bbd3807.zip
Make current virtual console the default one for X
-rw-r--r--roles/shell/bash/templates/bash_profile.j22
1 files changed, 1 insertions, 1 deletions
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 @@
5[[ -f $XDG_CONFIG_HOME/bash/bashrc ]] && . $XDG_CONFIG_HOME/bash/bashrc 5[[ -f $XDG_CONFIG_HOME/bash/bashrc ]] && . $XDG_CONFIG_HOME/bash/bashrc
6{% if "graphical_vt" in features.get(profile, []) %} 6{% if "graphical_vt" in features.get(profile, []) %}
7 7
8if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then 8if [[ ! $DISPLAY && $XDG_VTNR -eq {{ lookup('env', "XDG_VTNR") | default(1, true) }} ]]; then
9 [[ -f "$XDG_STATE_HOME/bash/bashrc_temp" ]] && rm -f $XDG_STATE_HOME/bash/bashrc_temp 9 [[ -f "$XDG_STATE_HOME/bash/bashrc_temp" ]] && rm -f $XDG_STATE_HOME/bash/bashrc_temp
10 exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 10 exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1
11fi 11fi