How can I prevent the Photos app from launching when I connect a device?
I'm not exactly certain how I managed it, but a combination of these may be at least part of the fix...


In Image Capture, set "connecting this xxx opens" to 'no application'
(If you don't see that option, click the tiny reveal button at the bottom left)





Using RCDefaultApp to set all Media options to 'Ignore'