So lets get started say if you want to make sfs as a new global mime.
first go to /usr/share/mime/packages,
make a new xml called sfs.xml and copy the following
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/sfs">
<comment xml:lang="en">SfS archive</comment>
<glob pattern="*.sfs"/>
</mime-type>
</mime-info>
update-mime-database /usr/share/mime
that will rebuild the mime data base with your new sfs added
Now your going to need an action for it.
Right click on any sfs package you have and select "Set Run Action".
Now go to /usr/sbin/filemnt and drop that on the popup window that "Set Run Action" opened. Basically filemnt is what is used to mount sfs and iso images.
That will create a link in /root/.config/rox.sourceforge.net/MIME-types/application_sfs
now thanks to that link we know what to call the mime icon application_sfs
Next make a 48x48 icon called application_sfs.png and place it in /etc/xdg/rox.sourceforge.net/MIME-icons/
I use /etc/xdg/rox.sourceforge.net/MIME-icons/ instead of /usr/local/apps/ROX-Filer/ROX/MIME because rox for some odd reason doesn't find it there and also that way you know which new ones you've added.
And now your done.
Note: Different versions of rox have different naming formats, some use underscore and some use hyphens. like application_sfs.png or application-sfs.png
if you don't have the update-mime-database when you try to update, below is a pet.
hope that helps
ttuuxxx