Previously I can remove the files end with
~/Library/Application Support/Dock/ to reset the ordering of apps, but now doing the same thing doesn’t help. Do anyone know where the new path that organizes the Launchpad is located?
Enter this line in the console:
defaults -currentHost write com.apple.dock ResetLaunchPad -bool true; killall Dock
Removing the db doesn't seem to do the trick any more. So this two steps are necessary to reset the Launchpad in Yosemite:
- rm ~/Library/Application\ Support/Dock/*.db ; killall Dock
- defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
rm ~/Library/Application\ Support/Dock/*.db rm "/$TMPDIR../0/com.apple.dock.launchpad/db/db*" defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
Here Launchpad resets, when deleting the three database files in...
/private/var/folders/02/yff1cxtx61v3y1pydkt96j2h0000gn/0/com.apple.dock.launchpad/db/db /private/var/folders/02/yff1cxtx61v3y1pydkt96j2h0000gn/0/com.apple.dock.launchpad/db/db-shm /private/var/folders/02/yff1cxtx61v3y1pydkt96j2h0000gn/0/com.apple.dock.launchpad/db/db-wal
...and restarting the Dock:
I get there by opening
Starting in Yosemite, simply running
killall Dock wont always cut it when altering your
In Yosemite the
defaults are now cached in two separate persistent processes called
cfprefsd; one owned by you,
$USER, and the other owned by
root, so you essentially need to restart these processes.
You can verify this by opening up Activity Monitor.app and searching for
(There can actually be more than two of these process in some circumstances, not to worry though!)
I added the following one liner to my shell profile of choice (.zshrc) so that it is easily available to me anytime by just typing
fixpref, but you also can just cut out the good parts to use it once!
#!/bin/bash # Clear defaults caches, reload them, and then kill everything! alias fixpref='sudo killall -SIGKILL cfprefsd && killall Dock && killall Finder'