[SOLVED] Need some help: shared-mime-info db entry

Daniel Leidert daniel.leidert.spam at gmx.net
Sat Dec 30 05:22:13 EET 2006


Am Freitag, den 29.12.2006, 21:14 +0100 schrieb Daniel Leidert:
> 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"/>

Seems it was an offset issue. I corrected the offset values and now it
works.

Regards, Daniel




More information about the xdg mailing list