android-emulator: api36-v7 — noVNC defaults: scaled view, autoconnect, reconnect
Some checks failed
ci/woodpecker/push/build-cli Pipeline was successful
ci/woodpecker/push/default Pipeline was canceled

Viktor's screen rendered unscaled on a bare /vnc.html. The entrypoint
now writes /usr/share/novnc/defaults.json (resize=scale, autoconnect,
reconnect with 2s delay, shared) so every load behaves right without URL
params, and viewers self-heal across pod restarts/wakes. Already applied
live to the running pod; this makes it survive the next wake.
This commit is contained in:
Viktor Barzin 2026-06-12 20:18:26 +00:00
parent ff08c685cd
commit 12fd1fcbc9
3 changed files with 14 additions and 3 deletions

View file

@ -79,6 +79,17 @@ hw.keyboard=yes
EOF
fi
# --- noVNC defaults: scaled view, autoconnect, self-reconnect ----------------
cat > /usr/share/novnc/defaults.json <<'JSON'
{
"autoconnect": true,
"reconnect": true,
"reconnect_delay": 2000,
"resize": "scale",
"shared": true
}
JSON
# --- virtual display + browser viewing ---------------------------------------
export DISPLAY=:0
Xvfb :0 -screen 0 "$SCREEN_GEOMETRY" -nolisten tcp &