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
12 TheSource.CDX
Description: chemical/cdb
_______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
