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 <noreply@anthropic.com>
This commit is contained in:
adadrag
2026-03-12 17:27:43 +00:00
parent 433fdc9d0e
commit 76d1b7d5d6

View File

@@ -241,7 +241,10 @@ unset DBUS_SESSION_BUS_ADDRESS
exec startxfce4 exec startxfce4
XSTARTUP XSTARTUP
chmod +x /root/.config/tigervnc/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) ───────────────────────────────────── # ─── Fix Chromium for LXC (--no-sandbox) ─────────────────────────────────────
info "Patching Chromium for LXC..." info "Patching Chromium for LXC..."