Option to change the default for mount usb

An option to modify the default when a USB drive is inserted.

I tried unsuccessfully to find the code for doing this. I would be happy do the modification myself if possible.

If it is possible where do I have to look?

Thanks.

Look at udisks configuration.
Generally that’s distributions that set this path.
Like:

Hi,

I know how to mount a disk manually and automatically. Perhaps I was not clean about that I was asking for.
When I plug a USB disk into the computer a popup comes up.

It has a few options.

  1. Mount and Open (The default if I click on it.)

  2. Mount

  3. Download Photos with Gwenview

I would like to be able to configure option number 2 to be the default.

Thanks Ghiora

We have some basic documentation:

You should be able to do that as gwenview does:

Then place the .desktop file in the /usr/share/solid/actions/ folder, you can find more examples there.

How it was initially done in gwenview: