Restore complete wallpaper policies
This commit is contained in:
@@ -47,7 +47,7 @@ for mapping in \
|
||||
'Displays.externalChangeBlocked = blocked;' \
|
||||
'SystemSettings.applyPersistedDisplayPolicy();' \
|
||||
'Keybinds.applyReload();' \
|
||||
'Wallpaper.set(path);' \
|
||||
'Wallpaper.applyCurrentPolicy(false);' \
|
||||
'LockScreen.regenerate();' \
|
||||
'Quickshell.reload(false);'; do
|
||||
rg -Fq "$mapping" "$service" || fail "production restore seam is missing: $mapping"
|
||||
@@ -88,7 +88,7 @@ jq -e '
|
||||
"display.protect:{\"DP-2\":{\"mode\":\"4500x3000@60\",\"scale\":1.5,\"transform\":0}}",
|
||||
"system.apply",
|
||||
"keybinds.reload",
|
||||
"wallpaper.set:/tmp/restored-wallpaper.jpg",
|
||||
"wallpaper.apply-policy",
|
||||
"lock.regenerate",
|
||||
"display.block:false",
|
||||
"shell.reload"
|
||||
@@ -127,7 +127,7 @@ jq -e '
|
||||
"display.protect:{\"DP-2\":{\"mode\":\"4500x3000@60\",\"scale\":1.5,\"transform\":0}}",
|
||||
"system.apply",
|
||||
"keybinds.reload",
|
||||
"wallpaper.set:/tmp/restored-wallpaper.jpg",
|
||||
"wallpaper.apply-policy",
|
||||
"lock.regenerate",
|
||||
"display.block:false",
|
||||
"shell.reload"
|
||||
|
||||
@@ -49,7 +49,7 @@ rg -Fq 'LockScreen.regenerate();' "$system_settings" \
|
||||
|| fail 'restoreDefaults does not regenerate the shipped lock screen'
|
||||
rg -Fq 'const effectivePath = path === "" ? root.shippedPath : path;' "$wallpaper_service" \
|
||||
|| fail 'clearing wallpaper preference leaves the old image visible'
|
||||
rg -Fq 'property string storedValue:' "$wallpaper_service" \
|
||||
rg -Fq 'storedPath: rawGlobal === root.shippedPath ? "" : rawGlobal' "$wallpaper_service" \
|
||||
|| fail 'the shipped wallpaper cannot remain represented by the default empty preference'
|
||||
|
||||
qs_for_harness() {
|
||||
@@ -149,6 +149,11 @@ jq -e '.calls == [
|
||||
[[ "$(qs_for_harness ipc call settings-system-test stored dockHideDelayMs)" == "250" ]] \
|
||||
|| fail 'reset did not restore a schema default'
|
||||
for default_case in \
|
||||
'wallpaperMode|"single"' \
|
||||
'wallpaperSlideshowPaths|[]' \
|
||||
'wallpaperIntervalMinutes|30' \
|
||||
'wallpaperShuffle|true' \
|
||||
'wallpaperPerMonitor|{}' \
|
||||
'lockBackgroundMode|"screenshot"' \
|
||||
'lockBlurLevel|3' \
|
||||
'lockShowClock|true' \
|
||||
|
||||
Reference in New Issue
Block a user