mriza / XMind-Linux-Installer

A simple BASH script to install XMind in Linux
GNU General Public License v3.0
54 stars 29 forks source link

Need thumbnail for xmind file #12

Closed l0o0 closed 4 years ago

l0o0 commented 6 years ago

I install Xmind as the instruction. After updated mime database, I can open xmind file by double click.
But I think you should provide a thumbnail for xmind file.

Below is what xmind file looks in nautlius.

image

l0o0 commented 6 years ago

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 gtk-update-icon-cache /usr/share/icons/gnome

Now Xmind file looks image

mriza commented 4 years ago

icon and mimitype has been supported, please check again