Closed eagleofnorth closed 6 years ago
I managed to solve this the following way:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/mindmap">
<comment>Xmind files</comment>
<icon name="application-xmind"/>
<glob pattern="*.XMIND"/>
<glob pattern="*.xmind"/>
</mime-type>
</mime-info>
sudo update-mime-database /usr/share/mime
Find a xmind icon that you want to use. It must be in SVG format. I used: http://www.iconarchive.com/show/papirus-apps-icons-by-papirus-team/xmind-icon.html
Rename the SVG file to applications-mindmap.svg
Move it to /usr/share/icons/hicolor/scalable/mimetypes
Run the following command:
sudo gtk-update-icon-cache /usr/share/icons/hicolor/ -f
thanks for your feedback, I will include this in the script, or you can contribute by forking it and make a pull request for the changes
Thanks a lot for providing this script. Makes what seems impossible quite easy.
However after installing Xmind with this script Ubuntu 16.04 seems to treat .zip files and .xmind files in the same way:
I can set Ubuntu to open xmind files in Xmind (by right clicking an xmind file and go to properties). But then Ubuntu will also try to open .zip files in Xmind (!).
Thanks for all help!