Fix Volumio startup and online updates

This commit is contained in:
Mikei386
2026-07-25 12:30:35 +02:00
parent 22444ff5bd
commit 00fb59f643
8 changed files with 264 additions and 22 deletions
+4 -11
View File
@@ -165,10 +165,6 @@ else
chmod 700 "$CHROME_USER_DATA_DIR"
fi
pkill -9 -x chromium || true
pkill -9 -f "chromium.*--kiosk" || true
sleep 0.3
EXTENSIONS=()
EXT_VK_RESOLVED="$(resolve_extension_dir "$EXT_VK" \
"$PHOENIX_DIR/VirtualKeyboard" \
@@ -216,21 +212,18 @@ CHROME_CMD=(
--disable-features=Translate,TranslateUI
--memory-pressure-off
--max-active-webgl-contexts=1
"$ANALYZER_URL"
"$VOLUMIO_URL"
)
if [ -n "$EXTENSION_ARG" ]; then
CHROME_CMD+=(--load-extension="$EXTENSION_ARG")
fi
# Start with the lightweight Analyzer page. The tab-toggle extension creates
# exactly one inactive Volumio tab after Chromium is ready.
CHROME_CMD+=("$ANALYZER_URL")
sudo -u "$KIOSK_USER" "${CHROME_CMD[@]}" >>"$LOG" 2>&1 &
CHROME_PID=$!
sleep 2
if command -v xdotool >/dev/null 2>&1; then
xdotool key Ctrl+t type "$VOLUMIO_URL" key Return || true
fi
wait "$CHROME_PID"
echo "=== $(date): session_volumio.sh END ==="