Skip to content

Commit dc4f1d3

Browse files
Alex Guerreromathiasbynens
authored andcommitted
.osx: Prevent Photos from opening automatically
Closes mathiasbynens#608.
1 parent 4b7d29d commit dc4f1d3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.osx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,13 @@ defaults write com.apple.appstore WebKitDeveloperExtras -bool true
681681
# Enable Debug Menu in the Mac App Store
682682
defaults write com.apple.appstore ShowDebugMenu -bool true
683683

684+
###############################################################################
685+
# Photos #
686+
###############################################################################
687+
688+
# Prevent Photos from opening automatically when devices are plugged in
689+
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
690+
684691
###############################################################################
685692
# Messages #
686693
###############################################################################
@@ -835,7 +842,7 @@ defaults write com.divisiblebyzero.Spectacle UndoLastMove -data 62706c6973743030
835842

836843
for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "cfprefsd" \
837844
"Dock" "Finder" "Google Chrome" "Google Chrome Canary" "Mail" "Messages" \
838-
"Opera" "Safari" "SizeUp" "Spectacle" "SystemUIServer" "Terminal" \
845+
"Opera" "Photos" "Safari" "SizeUp" "Spectacle" "SystemUIServer" "Terminal" \
839846
"Transmission" "Tweetbot" "Twitter" "iCal"; do
840847
killall "${app}" &> /dev/null
841848
done

0 commit comments

Comments
 (0)