diff -ru shared-mime-info-0.70.orig/freedesktop.org.xml.in shared-mime-info-0.70/freedesktop.org.xml.in
--- shared-mime-info-0.70.orig/freedesktop.org.xml.in	2009-12-11 10:00:42.000000000 +0000
+++ shared-mime-info-0.70/freedesktop.org.xml.in	2009-12-11 10:04:26.000000000 +0000
@@ -1395,6 +1395,15 @@
       <match offset="5:100" type="string" value="&lt;dia:"/>
     </magic>
   </mime-type>
+  <mime-type type="application/x-dia-shape">
+    <_comment>Dia shape</_comment>
+    <generic-icon name="image-x-generic"/>
+    <sub-class-of type="application/xml"/>
+    <glob pattern="*.shape"/>
+    <magic priority="50">
+      <match offset="5:100" type="string" value="&lt;shape"/>
+    </magic>
+  </mime-type>
   <mime-type type="application/x-dvi">
     <_comment>TeX DVI document</_comment>
     <generic-icon name="x-office-document"/>