Didn't grab TC yet but for system-wide something like this (I tend to do stuff locally, if anyone has any corrections please do so
First create an .xml, I did so in ~/Documents, named it truecrypt.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-true-crypt">
<comment>TrueCrypt files</comment>
<glob pattern="*.tc"/>
</mime-type>
</mime-info>
Then add, locally no sudo is used
Code:
sudo xdg-mime install --novendor ~/Documents/truecrypt.xml
Locally this isn't needed, probably is for system-wide
Code:
sudo update-mime-database /usr/share/mime
After that if using a custom .desktop I'd use xdg-desktop-menu install --novendor /path to .desktop but no need here. Instead you open the current .desktop & add to the end of the MimeType= line this
application/x-true-crypt;
or if there is no such line then create it
Code:
MimeType=application/x-true-crypt
Then do a log out in