How to disable Photos.app launching every time a device is connected Every time you connect a device Photos.app opens and you have to disable it for every device one by one. 

How do you disable this for all devices you connect?
You can use following command to 

defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES 

Source