Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question
    
Why do you restart Dock after changing the Launchpad configuration? –  duci9y Aug 25 '12 at 15:28
    
I'm a developer and I'm wondering what to do if an user restarts the Dock (losing the Launchpad configuration) –  user732274 Aug 25 '12 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. –  duci9y Aug 25 '12 at 16:09
    
Can I force those changes to be written to disk? –  user732274 Aug 25 '12 at 16:12
    
To answer that I would like to know something. How exactly are you modifying the Launchpad? –  duci9y Aug 25 '12 at 16:13

1 Answer 1

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

share|improve this answer
    
Yes, it should work since the Dock is not killed but properly stopped. I'll try that, thank you –  user732274 Aug 26 '12 at 14:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.