OSDN Git Service

[fix] : Fixed starting x.
authorhayao <shun819.mail@gmail.com>
Mon, 13 Apr 2020 01:32:07 +0000 (10:32 +0900)
committerhayao <shun819.mail@gmail.com>
Mon, 13 Apr 2020 01:32:07 +0000 (10:32 +0900)
channels/xfce/airootfs/etc/skel/.bash_profile
channels/xfce/airootfs/etc/skel/.zprofile

index 62fd05c..af99c4c 100755 (executable)
@@ -4,4 +4,4 @@
 
 [[ -f ~/.bashrc ]] && . ~/.bashrc
 [[ -f ~/.setup.sh ]] && ~/.setup.sh
-[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
+[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 && $(tty) = "/dev/tty1" ]] && exec startx
index 06dd618..f22a024 100755 (executable)
@@ -3,4 +3,4 @@
 #
 
 [[ -f ~/.setup.sh ]] && ~/.setup.sh
-[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
+[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 && $(tty) = "/dev/tty1" ]] && exec startx