Achim Gädke wrote: > Thanks for the hint, I will have a closer look to that and correct these > settings and integrate the mimetypes more properly. > These two lines should be added to hdfview.install :
debian/hdfview.desktop /usr/share/applications ncsa/hdf/view/icons/hdf_large.gif /usr/share/icons Unfortunately hdf_large.gif is not renamed and it is not really large: 80 x 80 and only 2480 bytes. Achim
[Desktop Entry] Exec=/usr/bin/hdfview MimeType=application/x-hdf; Name=hdfview Name[de]=hdfview Name[en]=hdfview Comment=HDF4/5 Data Browser Comment[DE]=HDF4/5 Daten Browser Comment[EN]=HDF4/5 Data Browser Terminal=false Type=Application X-MultipleArgs=true Categories=Science;Physics;DataVisualization;Education; Icon=/usr/share/icons/hdf_large.gif
application/x-hdf; /usr/bin/hdfview %F
<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <!-- well, we could have hdf4 and hdf5 as different mime types... --> <mime-type type="application/x-hdf"> <comment>Hierachical Data Format</comment> <magic> <!--see: HDF5 File Format Specification Version 2.0 Chapter II --> <match type="string" offset="0" value="\211HDF\r\n\032\n"/> <!--see: HDF4r15_SpecDG.pdf Chapter 2.2: 0x0E 0x03 0x13 0x01 --> <match type="string" offset="0" value="\016\003\023\001"/> </magic> <glob pattern="*.hdf" /> <glob pattern="*.h4" /> <glob pattern="*.h5" /> <icon name="/usr/share/icons/hdf_large.gif" /> </mime-type> </mime-info>

