summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-10-08Make it possible to use xdgmime in PATH, if not present locallywork/dfaure/xdgmime-in-pathBruno Victal1-4/+4
2023-09-19Add subclass information for .ppt and .xlsLukáš Tyrychtr1-0/+2
Without the subclass information, KDE's indexing daemon is not capable to extract the text properly. See https://bugs.kde.org/show_bug.cgi?id=438455#c23 for more context. Fixes #190
2023-09-18Add a bzip2 test caseIngo Brückl3-0/+4
2023-09-18Add application/x-bzip3Ingo Brückl4-0/+19
Also add application/x-bzip3-compressed-tar. BZip3 is a spiritual successor to bzip2. https://github.com/kspalaiologos/bzip3
2023-09-18Add application/x-bzip for bzip2's deprecated predecessor bzipIngo Brückl4-0/+19
Also add application/x-bzip-compressed-tar. The deprecated predecessor of bzip2 has its own magic string.
2023-09-18Rename application/x-bzip to application/x-bzip2Ingo Brückl1-13/+9
Also rename application/x-bzip-compressed-tar to application/x-bzip2-compressed-tar. An archive with magic string "BZh" is a bzip2 archive, the successor to bzip.
2023-09-17add tiled map editor map and tileset filesdavenewton6-0/+66
2023-09-17Add image/apngAlex Henrie3-0/+16
https://www.iana.org/assignments/media-types/image/apng https://www.iana.org/assignments/media-types/image/vnd.mozilla.apng https://www.w3.org/TR/png-3/#apng-frame-based-animation
2023-09-17Lengthen image/png magicAlex Henrie1-1/+1
https://www.iana.org/assignments/media-types/image/png https://www.w3.org/TR/png-3/#3PNGsignature
2023-09-16Add test file for JPEG-XRDavid Faure2-0/+2
2023-09-16Add JPEG XR mime typeKai Uwe Broulik1-0/+12
image/jxr is the official IANA mimetype image/vnd.ms-photo was a provisional registration name still mentioned on https://en.wikipedia.org/wiki/JPEG_XR, and not integrated by IANA. Doesn't hurt to have it as an alias though.
2023-09-16Add Gerber and Excellon drill filesIan McInerney12-0/+240
2023-09-12Bump magic priority for application/ovfDavid Faure1-1/+1
It was equal to the magic for tar files, so an ovf file could end up being sniffed as ovf or tar, randomly, depending on the implementation. The spec says nothing about preferring a subclass, so better use priorities to order these magic matches.
2023-09-09Fix description for audio/x-xi cs1271-1/+1
audio/x-xi is the instrument format for FastTracker II, not Scream Tracker.
2023-09-04Add Portable Font Resource `application/font-tdpfr`.Allison Reid3-0/+13
Bitstream's TrueDoc Portable Font Resource format is part of several digital TV broadcast specifications and is documented as RFC 3073: https://datatracker.ietf.org/doc/html/rfc3073 ``` Magic number(s): 50 46 52 30 hex File extension(s): PFR Macintosh File Type Code(s): Creator: 'b$pw' Type: 'PFR ' ``` There is also a newer version of the format with `50 46 52 31` hex (PRF1), such as the test file included here. `libmagic` also recognizes `PRF1`: https://github.com/file/file/blob/7a821aedc144f70ec848ea632a64db74b79563c1/magic/Magdir/fonts#L249-L252 The Bitstream specifications are available from Wayback Machine: https://web.archive.org/web/20040407162455/http://www.bitstream.com/categories/developer/truedoc/pfrspec.html "The PFR specification defines the Bitstream portable font resource (PFR), which is a compact, platform-independent format for representing high-quality, scalable outline fonts. Many independent organizations responsible for setting digital TV standards have adopted the PFR font format as their standard font format, including: - ATSC (Advanced Television Systems Committee) - DAVIC (Digital Audio Visual Council) - DVB (Digital Video Broadcasting) - DTG (Digital TV Group) - MHP (Multimedia Home Platform) - ISO/IEC 16500-6:1999 - OCAP (OpenCable Application Platform)" Per RFC 3073, "The PFR media type has been previously registered with IANA as `application/vnd.truedoc`. In view of its subsequent widespread adoption as a standard font format by multiple standards bodies who have relationships with the Internet community, Bitstream has been asked to re-register this media type within the IETF tree." https://www.iana.org/assignments/media-types/application/vnd.truedoc http://www.iana.org/assignments/media-types/application/font-tdpfr This format was once supported for downloadable web fonts in Netscape 4.x.
2023-09-04Add mimetype application/x-lmdbDavid Faure4-1/+17
Since it shares the *.mdb extension with msaccess, added a tes file for msaccess, and gave a higher weight to the msaccess glob for compatibility reasons (so that filename-only matching of *.mdb still says msaccess). Reference for the extensions: https://lmdb.readthedocs.io/en/release/ Reference for the magic: https://git.openldap.org/openldap/openldap/-/blob/mdb.master/libraries/liblmdb/mdb.c Mimetype name: made up, no existing name found Fixes: #168
2023-09-03Add definition and test file for StuffIt X archives.Allison Reid3-0/+11
There is an existing definition for the older StuffIt and StuffIt 5.5 formats. This newer format was added in StuffIt 7 in 2002 with separate Media-Type. From `StuffIt Deluxe 7.0.app/Contents/Info.plist` on my PowerBook 2400c: ``` <dict> <key>CFBundleTypeName</key> <string>StuffIt X Archive</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleTypeIconFile</key> <string>159</string> <key>CFBundleTypeOSTypes</key> <array> <string>SITX</string> </array> <key>CFBundleTypeExtensions</key> <array> <string>sitx</string> </array> <key>CFBundleTypeMIMETypes</key> <array> <string>application/x-stuffitx</string> <string>application/x-sitx</string> </array> </dict> ``` My included `test.sitx` was created with the same version of the software on the same machine and is also added to `tests/mime-detection/list`: ``` [okeeblow@emi#shared-mime-info] xxd -l 16 tests/mime-detection/test.sitx 00000000: 5374 7566 6649 7421 a10a 4a05 9bdd 4215 StuffIt!..J...B. ``` Apache HTTPd is aware of this Media-Type: https://bz.apache.org/bugzilla/show_bug.cgi?id=38009 PRONOM format definition: https://www.nationalarchives.gov.uk/PRONOM/Format/proFormatSearch.aspx?status=detailReport&id=1147
2023-09-03spec: Clarify that namespaceURI can be emptyPhilip Withnall1-0/+5
The previous wording in the spec didn’t make it clear that it isn’t required (but at least one of it and `localName` is required). This wording is based on the error checking present in `update-mime-database.c`, rather than some innate knowledge of how MIME information should work. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2023-09-01Add application/vnd.ms-officethemeAlex Henrie1-0/+6
Give it the generic text template icon because MS Office theme files are like templates and the same theme file can be used in Word, Excel, and PowerPoint. https://www.iana.org/assignments/media-types/application/vnd.ms-officetheme
2023-09-01Add mime type for Typst filesJake Leahy3-0/+11
2023-09-01Add text/x-nim and text/x-nimscriptJake Leahy5-0/+21
2023-08-31Don't install man page on WindowsAllen Winter1-1/+3
man pages don't make sense on Windows Change-Id: I09f7befa580663bceed942fe04958db38a759c27
2023-08-31Improve matching for message/rfc822Carl Schwan1-0/+2
MIME message sometimes also start with either a "Content-Type:" header or a "To:" header. Content-Type often appears often in encrypted attachments and To: seems to appear sometimes in email from Thunderbird.
2023-08-31Add mimetype for Blueprint source codeJames Westman3-0/+22
See https://gitlab.gnome.org/jwestman/blueprint-compiler/
2023-08-31buildsystem - add options for building tests and translationsAllen Winter2-2/+14
Change-Id: I514544a4fdf6909202f126009a5345c655c2eca5
2023-08-31Give application/x-raw-floppy-disk-image the floppy media iconAlex Henrie1-1/+2
2023-08-31Give generic optical disk images the optical media iconAlex Henrie1-1/+5
2023-08-31Make application/vnd.squashfs a subclass of application/vnd.efi.imgAlex Henrie1-0/+1
2023-08-31Prefer application/vnd.efi.img over application/x-raw-disk-imageAlex Henrie2-5/+6
Although this media type was registered for the purpose of using it with EFI, it was defined broadly to include all uncompressed disk images. https://www.iana.org/assignments/media-types/application/vnd.efi.img
2023-08-31Prefer application/vnd.efi.iso over application/x-cd-imageAlex Henrie2-4/+5
Although this media type was registered for the purpose of using it with EFI, it was defined broadly to include all ISO 9660 images. https://www.iana.org/assignments/media-types/application/vnd.efi.iso
2023-08-30Avoid meson errors when 'build-tools' is set to falseAlex Richardson2-5/+7
If build-tools is set to false we do not set the update_mime_database value, so avoid referencing it in that case.
2023-08-26Add DOS/Windows batch file typeAlex Henrie1-0/+7
Files of type application/x-bat are similar to files of type application/x-ms-dos-executable in that they can be run with Wine or DOSBox, but are different in that they are text, not binary. application/x-bat is not an official IANA media type, but is used by Apache Tika, which also accepts application/bat as an alias. https://ciam-tika.straumann.com/mime-types/application/x-bat
2023-08-24Add application/vnd.microsoft.windows.thumbnail-cacheAlex Henrie1-0/+12
These files may be used to recover low-resolution copies of images that were accidentally deleted. They can be opened in programs such as Vinetto <https://vinetto.sourceforge.net/>, Thumbs Viewer <https://thumbsviewer.github.io/>, or Thumb*.db Viewer <https://www.janusware.com/>. https://www.iana.org/assignments/media-types/application/vnd.microsoft.windows.thumbnail-cache
2023-08-24Add application/x-fishscript and application/x-nuscriptMéven Car6-0/+38
2023-08-24Add perf data file typekbroulik3-0/+10
2023-08-24use Sentence case for mime type descriptionsPeter Eisenmann1-84/+84
As agreed upon in #202, use Sentence case to improve readabilitiy and match what KDE and GNOME HIGs are expecting.
2023-08-24Revert "use Title Case for mime type description"Peter Eisenmann1-822/+822
This reverts commit c1ef8d6e3c64497b3bf281479de0f050e78a08c3.
2023-08-23Add todo.txt mime typeVictor Kareh3-0/+19
Adds mime type for the todo.txt file spec defined in https://github.com/todotxt/todo.txt
2023-08-19Prefer video/vnd.avi over video/x-msvideoAlex Henrie2-3/+4
https://datatracker.ietf.org/doc/html/rfc2361
2023-08-19Prefer audio/vnd.wave over audio/x-wavAlex Henrie2-3/+3
https://datatracker.ietf.org/doc/html/rfc2361
2023-08-17Add mimetype for ERIS link filesEmery Hemingway3-1/+16
https://eris.codeberg.page/eer/linkfile.xml
2023-08-17Add mimetype for CBOREmery Hemingway1-0/+6
2023-08-17Add support for newer AAXC Audible Audiobook formatStefan Brüns3-0/+9
The older AAX format contains the actual decryption key, protected with a trivial account specific master key. The new format, used by Audible since 2019, no longer embeds the decryption key.
2023-08-17test: add DVI test case and its Tex sourceVille Skyttä3-0/+7
2023-08-15ci: Use ci-templates to build imageDaniel Stone1-17/+98
Everyone should use ci-templates, and shared-mime-info is not different. Signed-off-by: Daniel Stone <daniels@collabora.com>
2023-08-15Add Modrinth modpackJakobDev3-0/+9
2023-08-15Add application/x-zpaqIngo Brückl3-0/+10
ZPAQ is an incremental, journaling archiver. https://mattmahoney.net/dc/zpaq.html
2023-08-15CI: Use dnf5 instead of dnfAlbert Astals Cid1-2/+2
2023-08-14use Title Case for mime type descriptionPeter Eisenmann1-822/+822
2023-04-04Add mimetype for Quite OK Image Format (QOI)Daniel Novomeský4-0/+13