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?
-
Why do you restart Dock after changing the Launchpad configuration?– duci9yAug 25, 2012 at 15:28
-
I'm a developer and I'm wondering what to do if an user restarts the Dock (losing the Launchpad configuration)– user732274Aug 25, 2012 at 15:30
-
Though it’s pretty unlikely that a normal user would restart Dock randomly, you should know that Launchpad configuration isn’t written to disk as soon as changes are made. They are written to disk at certain intervals.– duci9yAug 25, 2012 at 16:09
-
Can I force those changes to be written to disk?– user732274Aug 25, 2012 at 16:12
-
To answer that I would like to know something. How exactly are you modifying the Launchpad?– duci9yAug 25, 2012 at 16:13
1 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.
-
Yes, it should work since the Dock is not killed but properly stopped. I'll try that, thank you Aug 26, 2012 at 14:28