(The "x-" follows an established pattern for programming source code.)
<?xml version="1.0" encoding="utf-8"?><mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"><mime-type type="text/x-odin"><comment>Odin source file</comment><generic-icon name="OdinO"/><glob pattern="*.odin"/></mime-type></mime-info>
The "glob pattern" line is where you associate the file extension. "*.odin" means any file ending with ".odin".
Place various sized versions of the icon you want to use in the various size folders in: /usr/share/icons/theme-name/mimetypes. In my case, that's /usr/share/icons/Mint-Y/mimetypes. Make sure the icons are all named the same as the whatever you use in the generic-icon-name line above. .png files seem to work well, but make sure you create a large one, and then scale it down to the various sizes (16, 24, 32, 48, 64, 128 pixels).
Once you've done all that, open a terminal in the /usr/share/mime/packages folder and type (replace x-odin with your file name):
sudo xdg-mime install --mode system x-odin.xml
sudo update-mime-database /usr/share/mime
No comments:
Post a Comment
I reserve the right to remove egregiously profane or abusive comments, spam, and anything else that really annoys me. Feel free to agree or disagree, but let's keep this reasonably civil.