How does the filer decide what icon to show for a file, and which program to use to open it?
For each file, the filer starts by working out its MIME-Type, as follows:
Do not edit the globs and magic files directly, as they are generated from some XML files by the update-mime-database command. If the filer isn't getting the right type for a file, you can use MIME-Editor to change the rules.
Having decided on the type, the filer now finds an icon using the freedesktop.org Icon spec. By default, this results in loading an icon from ~/.icons/ROX. You can also override the icons using the filer's Set Icon... menu item. See the Theming page for details.
ROX-Filer looks in your ~/.config/rox.sourceforge.net/MIME-types directory, and tries to run the program with the same name as the MIME type. The easiest way to set a type is by choosing Set Run Action from the menu.
If no program is found various fallbacks are tried: just the first part of the MIME type, and some other configuration directories. See the freedesktop.org basedir spec for details.