From 88727fb590b79a351906a18b88c6d35b7ef28903 Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Fri, 27 Mar 2026 21:48:26 +0300 Subject: [PATCH] =?UTF-8?q?fix(desktop):=20don't=20exec=20startx=20?= =?UTF-8?q?=E2=80=94=20fall=20back=20to=20shell=20on=20X=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If X fails to start, the user gets a working shell prompt instead of a dead session or autologin loop. Co-Authored-By: Claude Sonnet 4.6 --- iso/overlay/home/bee/.profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iso/overlay/home/bee/.profile b/iso/overlay/home/bee/.profile index eced4a6..ede49c4 100644 --- a/iso/overlay/home/bee/.profile +++ b/iso/overlay/home/bee/.profile @@ -4,5 +4,7 @@ export PATH="/usr/local/bin:$PATH" # so the KVM shows the graphical UI without switching VTs. if [ "$(tty 2>/dev/null)" = "/dev/tty1" ] \ && [ -z "${DISPLAY:-}" ]; then - exec startx /usr/local/bin/bee-openbox-session -- :0 vt1 -nolisten tcp + startx /usr/local/bin/bee-openbox-session -- :0 vt1 -nolisten tcp + echo "" + echo "X session ended. Type 'startx' to retry or use the shell." fi