aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-09-24 11:29:17 +0300
committerMathias Bynens <mathias@qiwi.be>2011-09-24 11:29:17 +0300
commitc60ad3bf2ad3754d4697249676c2c85043a27f77 (patch)
tree4c3b1731dcd615144e45a265aa11ccf94d2e4498
parent439e6f5ade515c4f776c8d119d37616debf54509 (diff)
downloaddotfiles-c60ad3bf2ad3754d4697249676c2c85043a27f77.tar.gz
dotfiles-c60ad3bf2ad3754d4697249676c2c85043a27f77.tar.bz2
dotfiles-c60ad3bf2ad3754d4697249676c2c85043a27f77.zip
Only reset Launchpad when it’s actually available. Fixes #24.
-rwxr-xr-x.osx2
1 files changed, 1 insertions, 1 deletions
diff --git a/.osx b/.osx
index 268dc3d..a28ff61 100755
--- a/.osx
+++ b/.osx
@@ -135,7 +135,7 @@ defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
defaults write com.apple.dashboard devmode -bool true
# Reset Launchpad
-rm ~/Library/Application\ Support/Dock/*.db
+[ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db
# Show the ~/Library folder
chflags nohidden ~/Library