fix: don't pre-create Chromium profile dir — causes profile error on first launch
This commit is contained in:
+1
-4
@@ -62,8 +62,6 @@ config_json=$(cat "$REPO_DIR/config.json" | tr '\n' ' ')
|
|||||||
sed "s|const config = {};|const config = $config_json;|" \
|
sed "s|const config = {};|const config = $config_json;|" \
|
||||||
"$REPO_DIR/home-screen-index.html" > "$HOME_DIR/index.html"
|
"$REPO_DIR/home-screen-index.html" > "$HOME_DIR/index.html"
|
||||||
|
|
||||||
# ── Chromium profile ───────────────────────────────────────────────
|
|
||||||
mkdir -p "$CHROMIUM_PROFILE"
|
|
||||||
|
|
||||||
# ── LightDM auto-login ─────────────────────────────────────────────
|
# ── LightDM auto-login ─────────────────────────────────────────────
|
||||||
echo "==> Configuring LightDM auto-login..."
|
echo "==> Configuring LightDM auto-login..."
|
||||||
@@ -123,8 +121,7 @@ echo "==> Setting permissions..."
|
|||||||
chown -R "$KIOSK_USER:$KIOSK_USER" \
|
chown -R "$KIOSK_USER:$KIOSK_USER" \
|
||||||
"$KIOSK_HOME/.config" \
|
"$KIOSK_HOME/.config" \
|
||||||
"$REPO_DIR" \
|
"$REPO_DIR" \
|
||||||
"$HOME_DIR" \
|
"$HOME_DIR"
|
||||||
"$CHROMIUM_PROFILE"
|
|
||||||
|
|
||||||
# ── Enable LightDM, remove first-boot setup ───────────────────────
|
# ── Enable LightDM, remove first-boot setup ───────────────────────
|
||||||
systemctl enable lightdm
|
systemctl enable lightdm
|
||||||
|
|||||||
Reference in New Issue
Block a user