Need some help: shared-mime-info db entry

Daniel Leidert daniel.leidert.spam at gmx.net
Fri Dec 29 22:14:35 EET 2006


Hello,

I want to create an entry for the shared-mime-info database. The file
description reads (and is):

* 8 bytes with the value "VjCD0100" (56 6A 43 44 30 31 30 30)
* 4 bytes reserved (04 03 02 01)
* 16 bytes reserved, set to zero (00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00)

So I was thinking about the following.

<magic priority="85">
  <match value="VjCD0100" type="string" offset="0:8">
    <match value="\x04\x03\x02\x01" type="string" offset="9:12">
      <match value="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
type="string" offset="13:24"/>
    </match>
  </match>
</magic>

To test it, I've created a second database entry with the same file
extension, but without any magic pattern. Then I tested with nautilus.
But it detects the entry without any pattern given. So where is my
fault? A sample file is attached.

Regards, Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12 TheSource.CDX
Type: chemical/x-cdb
Size: 1913 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20061229/a38edeaa/attachment.bin 


More information about the xdg mailing list