From 6cd405cdff1e7bd199ed7929d9200b7774efc833 Mon Sep 17 00:00:00 2001 From: adadrag Date: Sun, 15 Mar 2026 13:59:40 +0000 Subject: [PATCH] Replace qterminal with xterm for reliable arrow key support qterminal produces escape characters for arrow keys in VNC. xterm handles this correctly. Also make brew shellenv conditional to suppress errors when brew isn't installed yet. Co-Authored-By: Claude Opus 4.6 (1M context) --- setup-openclaw-lxc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-openclaw-lxc.sh b/setup-openclaw-lxc.sh index b75a09a..8723a98 100644 --- a/setup-openclaw-lxc.sh +++ b/setup-openclaw-lxc.sh @@ -195,7 +195,7 @@ ct_exec " su - brewuser -c 'NONINTERACTIVE=1 /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"' 2>&1 | tail -5 # Make brew available system-wide for root - echo 'eval \"\$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)\"' >> /root/.bashrc + echo '[ -x /home/linuxbrew/.linuxbrew/bin/brew ] && eval \"\$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)\"' >> /root/.bashrc ln -sf /home/linuxbrew/.linuxbrew/bin/brew /usr/local/bin/brew " ok "Homebrew installed." @@ -208,7 +208,7 @@ info "Installing LXQt, TigerVNC, noVNC (this takes a few minutes)..." ct_exec " export DEBIAN_FRONTEND=noninteractive export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 - apt-get install -y lxqt openbox qterminal tigervnc-standalone-server novnc websockify dbus-x11 fonts-noto-color-emoji 2>&1 \ + apt-get install -y lxqt openbox xterm tigervnc-standalone-server novnc websockify dbus-x11 fonts-noto-color-emoji 2>&1 \ | grep -v -E 'Failed to write|Failed to send reload|Permission denied|Cannot set LC_' " ok "Desktop environment installed." @@ -314,7 +314,7 @@ Version=1.0 Type=Application Name=OpenClaw Setup Wizard Comment=Run the OpenClaw onboarding wizard to configure your AI assistant -Exec=qterminal --title 'OpenClaw Onboarding' -e sh -c 'openclaw onboard; exec bash' +Exec=xterm -title 'OpenClaw Onboarding' -fa 'Monospace' -fs 12 -e sh -c 'openclaw onboard; exec bash' Icon=utilities-terminal Terminal=false Categories=Utility;