diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-21 02:30:40 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-21 02:30:40 +0100 |
commit | 44c40b43e46ce0fcf3e2e31fde8f27666bbd3807 (patch) | |
tree | c5be07308484369b7ee8586c3f9b010cfa3d4483 | |
parent | 39749dd76fb02744f26c68054a9955cbe3e26849 (diff) | |
download | Ansible-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.j2 | 2 |
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 | ||
8 | if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then | 8 | if [[ ! $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 |
11 | fi | 11 | fi |