I working in a custom bash command for open all files(*.*), the command who i make in bash is named "open".
This is the content of my bash command file named "open":
#!/bin/bash xmessage -center "File $1, has been executed." exit
So, i want to replace the original command who uses all file manager or nemo and nautilus only, with my custom bash command:
For example if the original command of nautilus or nemo is:
And in this circumstance:
I will replace it with my custom bash command named "open", like this:
The replacement example:
mv "xdg-open" "xdg-open.old" mv "open" "xdg-open"
So, when the user do double click in any file or click on open button in nemo or nautilus or other file manager, all files or the selected file will be open with my custom bash command don't caring the extension or mime type.
So, Do you know which command nemo or nautilus use for open any file? or Do you know about other commands like xdg-open or mimeopen who maybe are used by nautilus or nemo?
note: i not want add a custom command, i want replace the original command.