diff options
author | Nick Budidharma <nickbudi@users.noreply.github.com> | 2014-04-27 03:21:10 -0400 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-04-27 09:39:34 +0200 |
commit | db46bccca91947b5a2d557623160ac71bca53a7c (patch) | |
tree | eb460d3e368de4563a557582edd97b4c107cbb34 | |
parent | aafc2c82277db2f12674215b6aaa1ad6748eec62 (diff) | |
download | dotfiles-db46bccca91947b5a2d557623160ac71bca53a7c.tar.gz dotfiles-db46bccca91947b5a2d557623160ac71bca53a7c.tar.bz2 dotfiles-db46bccca91947b5a2d557623160ac71bca53a7c.zip |
.osx: Don’t reset the desktop wallpaper when resetting Launchpad
Files like `530142A0-6AEC-4921-A3A7-7C2B72FFF6E3.db` and `desktoppicture.db` exist in `~/Library/Application\ Support/Dock`, so let’s add a `-` with a wildcard `*` to both sides to ensure we don’t delete `desktoppicture.db` and reset the desktop wallpaper.
Closes #370.
-rwxr-xr-x | .osx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -394,8 +394,8 @@ defaults write com.apple.dock showhidden -bool true # Make Dock more transparent defaults write com.apple.dock hide-mirror -bool true -# Reset Launchpad -find ~/Library/Application\ Support/Dock -name "*.db" -maxdepth 1 -delete +# Reset Launchpad, but keep the desktop wallpaper intact +find "${HOME}/Library/Application Support/Dock" -name "*-*.db" -maxdepth 1 -delete # Add iOS Simulator to Launchpad sudo ln -sf "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app" "/Applications/iOS Simulator.app" |