I know the request might seem rude, but is there any way to run spacefm -d and auto open rox (or any other file manager) when a usb stick is inserted rather than spacefm?
Is it possible to choose which file-manager to set as default for this?
Thanks.
anticapitalista
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note that the command will run only if SpaceFM automounts the device, not if something else does.
You can also set View|Events|Device, but you'll need a little script to determine if it's a mount or unmount, etc. Or use evt_start to set an event handler for evt_device.
If you're using udevil, udevil.conf can also be configured to run a script after it mounts - see success_exec.
Of course you'll also want to turn off Settings|Auto Mount|Open Tab so SpaceFM doesn't also open it.
Last edit: IgnorantGuru 2013-02-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know the request might seem rude, but is there any way to run spacefm -d and auto open rox (or any other file manager) when a usb stick is inserted rather than spacefm?
Is it possible to choose which file-manager to set as default for this?
Thanks.
anticapitalista
Not rude to me - SpaceFM is designed to play well with just about anything.
You can run any bash command (including executables such as rox) by setting (Devices right-click)|Settings|Auto Run|On Mount.
Note that the command will run only if SpaceFM automounts the device, not if something else does.
You can also set View|Events|Device, but you'll need a little script to determine if it's a mount or unmount, etc. Or use evt_start to set an event handler for evt_device.
If you're using udevil, udevil.conf can also be configured to run a script after it mounts - see success_exec.
Of course you'll also want to turn off Settings|Auto Mount|Open Tab so SpaceFM doesn't also open it.
Last edit: IgnorantGuru 2013-02-17
Thanks, perfect.