Created
November 3, 2016 02:54
-
-
Save reporter123/c5fe3fbb5f95145a38be78da1874a27f to your computer and use it in GitHub Desktop.
Magic file for shared-mime-info to reconize appleworks documents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> | |
<mime-type type="application/x-kdeuser1"> | |
<comment>AppleWorks File</comment> | |
<magic-deleteall/> | |
<magic> | |
<match type="byte" offset="1" value="0x07"> | |
<match type="string" offset="4" value="BOBO"/> | |
</match> | |
</magic> | |
<glob-deleteall/> | |
<glob pattern="*.CLW"/> | |
<glob pattern="*.clw"/> | |
</mime-type> | |
</mime-info> |
application/octet-stream is only for completely unknown types with no typing recognition at all. Don't install this file if that's what you want. application/octet-stream and similar are not applicable to custom type recognition. Using them as such would directly collide with the officially reserved purpose these types.
@reporter123, thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@reporter123, would "http://stackoverflow.com/a/1176031/9731176" not be superior? This situation appears to have already been standardized adequately.