Let’s get to the facts:
I won’t be explaining about mime-types here.
Whoever wants to do this follow this recipe:
The distro in question is linux Ubuntu 16.04 64bits
- Create an icon file called
application-prisma.svg
256x256px and put on /usr/share/icons/gnome/scalable/mimetypes
then the complete path will be: /usr/share/icons/gnome/scalable/mimetypes/application-prisma.svg
- Create another application icon-x-prisma.svg and place in the same place so the path will stay:
/usr/share/icons/gnome/scalable/mimetypes/application-x-prisma.svg
create a file called prisma.xml
and put in /usr/share/mime/packages
then the whole way will stay: /usr/share/mime/packages/prisma.xml
paste the following code into the prism.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-prisma">
<sub-class-of type="application/octet-stream"/>
<comment>Prisma compilado</comment>
<glob pattern="*.prisma"/>
<glob pattern="*.pris"/>
</mime-type>
<mime-type type="application/prisma">
<sub-class-of type="text/plain"/>
<comment>Prisma texto</comment>
<glob pattern="*.prisma"/>
<glob pattern="*.pris"/>
</mime-type>
</mime-info>
- execute the following commands:
$ sudo update-mime-database /usr/share/mime && sudo gtk-update-icon-cache
- AND VUALÁ