As a result, different kind of files, with different file extensions, can share the same Mime type and therefore Rox will not allow them to open with different programs: if you change the default action for one of them with the "Set run action" option, it will change for both, so one of them will be wrong.
The baseline result is that you cannot open one of those files by simply clicking on them or press enter; it will open with a wrong program and generate a weird error, so you have to select them, press "!" for the execute command, and write the name of the appropriate program time after time. A drag and a continuous source of errors.
Here is a recent way I found to circumvent that problem; for those programs who share the same Mime type, we'll send control to a bash script, which will the one in charge of doing the checking and execute the correct program. Here it is:
Code: Select all
#!/bin/bash
#Get extension
filename=`basename $1`
fileext=${filename##*.}
case $fileext in
h2song)
hydrogen -s $1 &
;;
aup)
audacity $1 &
;;
ardour)
ardour2 $1 &
;;
esac
As Rox does not differentiate between the types of files, we only need to do this change once, and it will be applied automatically to the other files. Finally, in each of the "case" entries in the script, we put one file termination that we want to use, and the program with which we want it to be executed. In my example script, it recognizes three kind of files: Hydrogen, Audacity, and Ardour. Previously to this trick, Rox filer considered the three of them to be Ardour, so it was easy to make mistakes when trying to open something. Other programs where I remember this happens are the Xmind mind mapping software, and the Portabase database.
Hope some of you find this little trick helpful