nixos/dms-greeter: skip invalid customThemeFile in preStart (#500091)

This commit is contained in:
Marcus Ramberg
2026-03-16 19:18:43 +00:00
committed by GitHub
@@ -290,7 +290,9 @@ in
fi
if [ -f settings.json ]; then
if cp "$(${jq} -r '.customThemeFile' settings.json)" custom-theme.json; then
theme_file="$(${jq} -r '.customThemeFile // empty' settings.json)"
if [ -f "$theme_file" ] && [ -r "$theme_file" ]; then
cp "$theme_file" custom-theme.json
mv settings.json settings.orig.json
${jq} '.customThemeFile = "${cacheDir}/custom-theme.json"' settings.orig.json > settings.json
fi