fix: don't pre-create Chromium profile dir — causes profile error on first launch

This commit is contained in:
2026-05-26 01:06:01 +00:00
parent ab423ef1a7
commit a2c14a4a39
+1 -4
View File
@@ -62,8 +62,6 @@ config_json=$(cat "$REPO_DIR/config.json" | tr '\n' ' ')
sed "s|const config = {};|const config = $config_json;|" \
"$REPO_DIR/home-screen-index.html" > "$HOME_DIR/index.html"
# ── Chromium profile ───────────────────────────────────────────────
mkdir -p "$CHROMIUM_PROFILE"
# ── LightDM auto-login ─────────────────────────────────────────────
echo "==> Configuring LightDM auto-login..."
@@ -123,8 +121,7 @@ echo "==> Setting permissions..."
chown -R "$KIOSK_USER:$KIOSK_USER" \
"$KIOSK_HOME/.config" \
"$REPO_DIR" \
"$HOME_DIR" \
"$CHROMIUM_PROFILE"
"$HOME_DIR"
# ── Enable LightDM, remove first-boot setup ───────────────────────
systemctl enable lightdm