Skip to content

Commit

Permalink
.osx: Prevent Photos from opening automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Guerrero authored and mathiasbynens committed Jan 14, 2016
1 parent 4b7d29d commit dc4f1d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .osx
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,13 @@ defaults write com.apple.appstore WebKitDeveloperExtras -bool true
# Enable Debug Menu in the Mac App Store
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 #
###############################################################################
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dc4f1d3

Please sign in to comment.