make sure startx
is only automatically called on TTY1 if std{in,out,err} are actually on a TTY -- not sddm or similar
This commit is contained in:
parent
3ad0129720
commit
dd85f11f9d
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
source "${HOME}/.zshrc.d/cbi.sh" 2>/dev/null
|
||||
if [ "$TTY" = '/dev/tty1' ]; then
|
||||
if [ -e "${HOME}/.zshrc.d/cbi.sh" ]; then
|
||||
source "${HOME}/.zshrc.d/cbi.sh" 2>/dev/null
|
||||
fi
|
||||
|
||||
if [ "$TTY" = '/dev/tty1' ] && [ -t 0 ] && [ -t 1 ] && [ -t 2 ]; then
|
||||
startx
|
||||
exit
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue