From f665c5e3018d0d0e961e97fafc7aae6b6084f58e Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Mon, 14 Oct 2019 22:32:54 +0200 Subject: [PATCH] =?UTF-8?q?ZSH:=20d=C3=A9placement=20de=20code=20pour=20le?= =?UTF-8?q?=20d=C3=A9marrage=20de=20la=20session=20graphique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zprofile | 5 +++++ .zshrc | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.zprofile b/.zprofile index 322d2ce..602fa41 100644 --- a/.zprofile +++ b/.zprofile @@ -1 +1,6 @@ emulate sh -c '. ~/.profile' + +# Start X automatically +if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx +fi diff --git a/.zshrc b/.zshrc index 1062a2d..cb51680 100644 --- a/.zshrc +++ b/.zshrc @@ -159,11 +159,6 @@ if [ ! $SSH_AGENT_PID ]; then fi; fi; -# Start X automatically -if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then - exec startx -fi - # Launch nvm possibilities (for javascript environment) case $HOST in lueur | baloo | sam)