aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Guerrero <alexguerrero1092@gmail.com>2015-12-16 14:13:58 +0100
committerMathias Bynens <mathias@qiwi.be>2016-01-14 12:56:19 +0100
commitdc4f1d34dc2808c8463033037396d8102d20921a (patch)
tree883a44b6ef2f189e26e9210c69d0aa26fc5b1f93
parent4b7d29dcc6b92b89f4444ede78921e5dad3f2582 (diff)
downloaddotfiles-dc4f1d34dc2808c8463033037396d8102d20921a.tar.gz
dotfiles-dc4f1d34dc2808c8463033037396d8102d20921a.tar.bz2
dotfiles-dc4f1d34dc2808c8463033037396d8102d20921a.zip
.osx: Prevent Photos from opening automatically
Closes #608.
-rwxr-xr-x.osx9
1 files changed, 8 insertions, 1 deletions
diff --git a/.osx b/.osx
index 7c57de6..b791162 100755
--- a/.osx
+++ b/.osx
@@ -682,6 +682,13 @@ defaults write com.apple.appstore WebKitDeveloperExtras -bool true
defaults write com.apple.appstore ShowDebugMenu -bool true
###############################################################################
+# Photos #
+###############################################################################
+
+# Prevent Photos from opening automatically when devices are plugged in
+defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
+
+###############################################################################
# Messages #
###############################################################################
@@ -835,7 +842,7 @@ defaults write com.divisiblebyzero.Spectacle UndoLastMove -data 62706c6973743030
for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "cfprefsd" \
"Dock" "Finder" "Google Chrome" "Google Chrome Canary" "Mail" "Messages" \
- "Opera" "Safari" "SizeUp" "Spectacle" "SystemUIServer" "Terminal" \
+ "Opera" "Photos" "Safari" "SizeUp" "Spectacle" "SystemUIServer" "Terminal" \
"Transmission" "Tweetbot" "Twitter" "iCal"; do
killall "${app}" &> /dev/null
done