How can I prevent the Photos app from launching when I connect a device? [duplicate]

The title says it all, whenever I plug a memory card on my computer or a cable to a device with photos, the Photos app launches.

I don't like using this app, not because I don't think it's a good app or whatever, but because I usually like making sure that I transfer all the files to the destination folders, not just the picture files (so also folder structure, preview files, .THM etc).

How can I disable the auto-launching of the Photos app?


I'm not exactly certain how I managed it, but a combination of these may be at least part of the fix...

  1. 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)

enter image description here

  1. Using RCDefaultApp to set all Media options to 'Ignore'

enter image description here