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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user