D20046: Verify mimetypes for all existing sample files, add some more
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Tue Apr 2 23:44:51 BST 2019
bruns added a subscriber: bcooksley.
bruns added a comment.
hexdump -n 11 -C autotests/samplefiles/test.AppImage
00000000 7f 45 4c 46 02 01 01 00 41 49 02 |.ELF....AI.|
grep -v comment /usr/share/mime/packages/freedesktop.org.xml | grep -B13 '*\.appimage'
<mime-type type="application/x-iso9660-appimage">
<sub-class-of type="application/x-executable"/>
<sub-class-of type="application/x-iso9660-image"/>
<generic-icon name="application-x-executable"/>
<magic priority="50">
<match value="ELF" type="string" offset="1">
<match value="0x41" type="byte" offset="8">
<match value="0x49" type="byte" offset="9">
<match value="0x01" type="byte" offset="10"/>
</match>
</match>
</match>
</magic>
<glob pattern="*.appimage"/>
--
<mime-type type="application/vnd.appimage">
<sub-class-of type="application/x-executable"/>
<sub-class-of type="application/vnd.squashfs"/>
<generic-icon name="application-x-executable"/>
<magic priority="50">
<match value="ELF" type="string" offset="1">
<match value="0x41" type="byte" offset="8">
<match value="0x49" type="byte" offset="9">
<match value="0x02" type="byte" offset="10"/>
</match>
</match>
</match>
</magic>
<glob pattern="*.appimage"/>
so obviously application/vnd.appimage is correct.
@bcooksley #freebsd <https://phabricator.kde.org/tag/freebsd/> - the shared mime data on BSD is outdated:
https://gitlab.freedesktop.org/xdg/shared-mime-info/commit/c643cab25b8a4ea17e73eae5bc318c840f0e3d4b
REPOSITORY
R286 KFileMetaData
REVISION DETAIL
https://phabricator.kde.org/D20046
To: bruns, #baloo, #frameworks, astippich, ngraham, poboiko
Cc: bcooksley, kde-frameworks-devel, gennad, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190402/9c4050e2/attachment.html>
More information about the Kde-frameworks-devel
mailing list