set as default type, add icon. going to assume the icon was installed already. should happen in most packaging out there.
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-hedgewars-demo">
<icon name="hedgewars" />
<!--
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/217997
<generic-icon name="applications-games"/>
-->
<comment>Hedgewars Demo</comment>
<comment xml:lang="fr">Hedgewars Démonstration</comment>
<magic priority="50">
<match required="yes" type="byte" offset="0" value="2"/>
<match required="yes" type="big16" offset="1" value="21572"/>
</magic>
<glob weight="60" pattern="*.hwd"/>
</mime-type>
<mime-type type="application/x-hedgewars-save">
<icon name="hedgewars" />
<!--<generic-icon name="applications-games"/>-->
<comment>Hedgewars Save</comment>
<magic priority="50">
<match required="yes" type="byte" offset="0" value="2"/>
<match required="yes" type="big16" offset="1" value="21587"/>
</magic>
<glob weight="60" pattern="*.hws"/>
</mime-type>
</mime-info>