title: Mime types for custom file type
body: <p>I'm trying to register a custom file type as a mime-type in linux. My custom filetype, with a custom extension, is actually a zip archive containing various xml and other files. </p>
  
  <p>The problem I'm having is that my operating system (kubuntu) won't recognize the file as my custom mime-type but insists on it being a zip file. </p>
  
  <p>I'm not sure where I should start trying to fix my problem. I've used the following mime info file (tugraz-caleydo.sharedmimeinfo):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'&gt;
  &lt;mime-type type="application/x-cal"&gt;  
  &lt;comment&gt;Caleydo Project&lt;/comment&gt;
  &lt;glob pattern="*.cal"/&gt;
  &lt;/mime-type&gt;
  &lt;/mime-info&gt;
  </code></pre>
  
  <p>My Desktop Entry (caleydo.desktop, correctly registered in /usr/share/applications):</p>
  
  <pre><code>[Desktop Entry]
  Version=2.01
  Encoding=UTF-8
  Name=Caleydo
  GenericName=Data Visualization 
  Comment=Visualization for Molecular Biology
  Exec=/usr/bin/caleydo
  Icon=/usr/share/pixmaps/caleydo_256.png
  StartupNotify=true
  Type=Application
  Categories=Science;
  MimeType=application/x-cal;
  </code></pre>
  
  <p>And these are the commands I'm trying to use:</p>
  
  <pre><code>sudo xdg-mime install --mode system tugraz-caleydo.sharedmimeinfo
  sudo xdg-mime default caleydo.desktop application/x-cal
  sudo update-mime-database /usr/share/mime
  </code></pre>
  
  <p>However, this still gives me:</p>
  
  <pre><code>$ xdg-mime query filetype export_2012.cal 
  application/zip
  </code></pre>