Hi, when I connect a USB device it opens a window “Disks & devices” and the possible actions, with the default “mount and open” if I click on the menu arrow it lists other actions, the second is “mount” and that works as I want. The problem is How I tell whatever prog opens the window that I want “mount” to be the default (as it was before) instead of “mount and open”. Not a big problem, really, but annoying as I don’t use the FileManager.
Not sure it will work, but in SystemSettings → Disks & Cameras → Device Actions you can configure actions. Maybe there is a way there to make it do what you want.
Or you could try to create a wrapper script that starts a different application based on the target url and set that as default file manager.
yes I tried to ceate a “mount” action (failed) but my problem is different, the action “mount” is already there in the menu that appears when I insert the key, I don’t know from where as it’s not in the list, but what I wanted was to make that action the default instead of “mount and open”, it was that way before. What prog opens that window? Is it configurable? Or this is the only thing in KDE that is not?
I am not aware of any way to configure that. Plasma seems to just assume that any action on a filesystem on a removable device should mount it first. You could make a feature request.
What I meant by my suggestions are 2 possible workarounds to make plasma mount the device without opening dolphin:
Maybe there is a way to tweak the attributes used for detection of in a way that the “Open action” after the mount wont’t be triggered at all.
[..] wrapper script [..]
The application that is called after the mount should be whatever you set as default file manager. It should be possible to set your default file manager to a script that will simply do nothing when the path beginns with /media/ and open your file manager of choice otherwise. I think this is the easier way.
I think that the action performed by the “mount and open” is “kde-open “%f” ” that seems to call the app specific to the object and that for a mount point is Dolphin, is there a list of this “actions” to see if there is an equivalent to “kde-mount” ( I tried it…) or a way to change the app to use for a mount poin to “mount and do nothing”,tried that too failure in both cases. And where is the action for “mount” in the list the one used is in
/usr/share/solid/actions/openWithFileManager.desktop ?
Misteries…