From 76d1b7d5d67b4cc5c6c397d4e500b0b29d3c6eb1 Mon Sep 17 00:00:00 2001 From: adadrag Date: Thu, 12 Mar 2026 17:27:43 +0000 Subject: [PATCH] Set noVNC scaling to auto by default Patches ui.js to initialize resize mode as 'scale' instead of 'off' so the VNC display auto-fits the browser window without manual config. Co-Authored-By: Claude Opus 4.6 --- setup-openclaw-lxc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup-openclaw-lxc.sh b/setup-openclaw-lxc.sh index cf9d7e5..7a8e145 100644 --- a/setup-openclaw-lxc.sh +++ b/setup-openclaw-lxc.sh @@ -241,7 +241,10 @@ unset DBUS_SESSION_BUS_ADDRESS exec startxfce4 XSTARTUP chmod +x /root/.config/tigervnc/xstartup" -ok "VNC configured." + +# Set noVNC scaling to auto by default +ct_exec "sed -i \"s/UI.initSetting('resize', 'off')/UI.initSetting('resize', 'scale')/\" /usr/share/novnc/app/ui.js" +ok "VNC configured (auto-scaling enabled)." # ─── Fix Chromium for LXC (--no-sandbox) ───────────────────────────────────── info "Patching Chromium for LXC..."