From db46bccca91947b5a2d557623160ac71bca53a7c Mon Sep 17 00:00:00 2001 From: Nick Budidharma Date: Sun, 27 Apr 2014 03:21:10 -0400 Subject: =?UTF-8?q?.osx:=20Don=E2=80=99t=20reset=20the=20desktop=20wallpap?= =?UTF-8?q?er=20when=20resetting=20Launchpad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .osx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.osx b/.osx index 4409560..cecdd4d 100755 --- a/.osx +++ b/.osx @@ -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" -- cgit v1.2.3