0

I have installed Xmind in Ubuntu 18.04 instructed by this script.

But I want to create a thumbnail for Xmind filetype. I think thumbnail can be generated by an icon downloaded from the internet.

enter image description here

I found some threads about making thumbnails, but I don't know how does is make? I hope someone may explain process of making thumbnails.

HOWTO: Thumbnails for Xmind mind map files
Generate thumbnails for text?

l0o0
  • 123

1 Answers1

0

I found an easy way to do this. I can add an icon for Xmind file by setting MIME type.
According to this thread. xmind.xml was created under /usr/share/mime/packages with the content below:

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-xmind">
    <comment>Xmind files</comment>
    <icon name="application-x-xmind"/>
    <glob pattern="*.XMIND"/>
    <glob pattern="*.xmind"/>
  </mime-type>
</mime-info>

Then I downloaded an icon. Move the icon to /usr/share/icons/gnome/scalable/mimetypes

sudo mv downloaded.svg /usr/share/icons/gnome/scalable/mimetypes/application-x-xmind.svg
sudo update-mime-database /usr/share/mime   
sudo update-mime-database /usr/share/mime

Now Xmind file looks
image

l0o0
  • 123