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:
@@ -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..."
|
||||||
|
|||||||
Reference in New Issue
Block a user