How to reset Launchpad ordering in OS X Yosemite?

Previously I can remove the files end with db in ~/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?


Solution 1:

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:

  1. rm ~/Library/Application\ Support/Dock/*.db ; killall Dock
  2. defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

Solution 2:

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

Solution 3:

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: killall Dock

I get there by opening

open $TMPDIR../0/com.apple.dock.launchpad/db/