fix: restart Dock/Finder/SystemUIServer after mackup restore

Mackup restores com.apple.dock.plist and other UI preference files, but
the running Dock/Finder processes don't reload them automatically. Add
ssr::macos::restart_ui (killall cfprefsd Dock Finder SystemUIServer + 2s
settle) called immediately after the mackup restore step so the Dock
layout and Finder settings take effect without requiring a logout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-12 09:51:34 +02:00
parent 488a9a2140
commit c330f96f9c
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -96,6 +96,10 @@ ssr::rs::run brew_install "Homebrew install" ssr::brew::ensure_install
ssr::rs::run brew_restore "Brew bundle install" ssr::brew::restore "$brewfile"
ssr::rs::run mackup_restore "Mackup restore" _ssr_mackup_restore_step
# Restart UI services so Dock/Finder/menubar pick up the plists restored
# by Mackup (com.apple.dock.plist etc.) without requiring a logout.
ssr::macos::restart_ui
ssr::rs::run macos_defaults "macOS defaults" ssr::macos::apply_defaults
if [[ "${SSR_SNAPSHOT_MACOS_PREFS:-true}" == "true" ]]; then