From dcb9ab145874d5a809903c52fdff1d222a5d0f98 Mon Sep 17 00:00:00 2001 From: Adrian Schneider Date: Fri, 29 May 2020 17:49:28 +0200 Subject: [PATCH] add profile.sh to start stdm on tty1 --- contrib/profile.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 contrib/profile.sh diff --git a/contrib/profile.sh b/contrib/profile.sh new file mode 100644 index 0000000..d16291f --- /dev/null +++ b/contrib/profile.sh @@ -0,0 +1,8 @@ +# To avoid potential situation where cdm(1) crashes on every TTY, here we +# default to execute cdm(1) on tty1 only, and leave other TTYs untouched. +if [[ "$(tty)" == '/dev/tty1' ]]; then + [[ -n "$STDM_SPAWN" ]] && return + # Avoid executing cdm(1) when X11 has already been started. + STDM_SPAWN=true exec stdm +fi +