I'm working with lubuntu 22.04. When I insert an USB device into one of the USB port of the system the device is automatically mounted and a files browse window is open on the screen.
I need to maintain the automount of the device but I need to stop the opening of the files browse window.
I have tried to use:
gsettings set org.gnome.desktop.media-handling automount false
My intentions were to disable the automount and after that to define a new script (based on this link) that mounts the USB device without open the browse window, but the previous command disables the automount of all devices (keyboard, mouse and so on).
I have searched a lot and read many post (for example this and this other about the same topic), but none give me a satisfactory answer.
So how can I disable the opening of the browse window when a USB device is automounted?