Lost Launchpad configuration

docklaunchpad

If I move an app in Launchpad and then I "killall Dock" from the terminal, the Launchpad sometimes gets its previous configuration so my changes are lost. How can I restart the Dock without losing the Launchpad configuration?

Best Answer

Something like osascript -e 'quit app "Dock"' might work. If not, you could also quit and reopen Dock by logging out and back in.