android-emulator: api36-v7 — noVNC defaults: scaled view, autoconnect, reconnect
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:
parent
ff08c685cd
commit
12fd1fcbc9
3 changed files with 14 additions and 3 deletions
|
|
@ -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 &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue