summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add mimetype for Quite OK Image Format (QOI)HEADmasterDaniel Novomeský2023-04-044-0/+13
|
* ci: Use detached pipelinesBastien Nocera2023-03-151-0/+5
| | | | See https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438#what-it-means-for-me-a-maintainer-of-a-project-part-of-gitlabfreedesktoporg
* Add OpenVPN profileNicolas Fella2023-02-264-0/+46
| | | | Using the name listed in https://www.digipres.org/formats/mime-types/
* Prefer application/java-archive to application/x-java-archiveAlex Henrie2023-02-092-4/+4
| | | | | | | Section 13.3.3 of the HTML 4.0 specification uses application/java-archive and I haven't been able to find any standard that uses application/x-java-archive. https://www.w3.org/TR/1998/REC-html40-19980424/struct/objects.html#h-13.3.3
* icons for 3d model formatsJakub Steiner2023-02-081-0/+6
| | | | Fixes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/191
* Make application/pgp-* not inherit from text/plainAlex Henrie2022-12-141-6/+0
| | | | | | | | | | | | | | | | | | | | | Although IANA's summaries of application/pgp-encrypted,[1] application/pgp-keys,[2] and application/pgp-signature [3] all say that they are exclusively "7bit text", they also all reference RFC 3156 which says that these formats may be either text or binary: "OpenPGP implementations can generate either ASCII armor or 8-bit binary output when encrypting data, generating a digital signature, or extracting public key data." [4] Moreover, GPG's default is to create binary files rather than base64 ASCII files. This reverts commit 2a82916e00e5541bc163c56de87d03c42c8a31b3. [1] https://www.iana.org/assignments/media-types/application/pgp-encrypted [2] https://www.iana.org/assignments/media-types/application/pgp-keys [3] https://www.iana.org/assignments/media-types/application/pgp-signature [4] https://www.rfc-editor.org/rfc/rfc3156
* Add text/julia for Julia source codeSøren Spætte2022-11-053-0/+7
|
* application/javascript: Rename to text/javascriptBastien Nocera2022-05-232-7/+7
| | | | | | | | As per RFC 9239. Miller, M., Borins, M., Bynens, M., and B. Farias, "Updates to ECMAScript Media Types", RFC 9239, DOI 10.17487/RFC9239, May 2022, <https://www.rfc-editor.org/info/rfc9239>.
* Change descriptions to say LibreOffice rather than OpenOfficeDavid Faure2022-05-061-10/+10
| | | | | | LibreOffice is vastly more packaged than OpenOffice in Linux these days. Fixes: #141
* test: update xdgmime to fe2f298fa691b225bdea31d816cf6728df91ba6dVille Skyttä2022-05-051-0/+0
| | | | | | Mainly for https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/18 Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/160
* Add TAK audio mime typedgcampea2022-05-053-0/+11
|
* video/vnd.youtube.yt: add magicVille Skyttä2022-05-011-0/+3
| | | | https://www.iana.org/assignments/media-types/video/vnd.youtube.yt
* video/vnd.youtube.yt: use IANA registered typeVille Skyttä2022-05-011-1/+2
| | | | | | application/vnd.youtube.yt is obsoleted by it, keep it as an alias. https://www.iana.org/assignments/media-types/video/vnd.youtube.yt
* text/markdown: add x-office-document generic-iconVille Skyttä2022-04-301-0/+1
| | | | | | | | Markdown files are similar in nature as DocBook files for which we already have this generic-icon in effect. A document one rather than generic text seems to match these files' content better semantically. Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/182
* Add two new languagesDavid Faure2022-04-303-0/+6520
|
* `audio/x-wav`: Add missing sub-class relationship with `application/x-riff`Allison Reid2022-04-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Citations: - IBM/Microsoft Multimedia Programming Interface and Data Specifications 1.0 http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Docs/riffmci.pdf#page=36 "Most of these file formats are based on the Resource Interchange File Format (RIFF). This chapter describes the following file formats: Waveform Audio File Format (WAVE)" - https://docs.microsoft.com/en-us/windows/win32/xaudio2/resource-interchange-file-format--riff- "This overview describes the Resource Interchange File Format (RIFF), which is used in .wav files." - Library of Congress https://www.loc.gov/preservation/digital/formats/fdd/fdd000001.shtml "Subtype of: RIFF, Resource Interchange File Format (RIFF)" - Any WAVE file :) ``` [okeeblow@emi#shared-mime-info] xxd -l 16 tests/mime-detection/test.wav 00000000: 5249 4646 ac58 0100 5741 5645 666d 7420 RIFF.X..WAVEfmt ```
* Add mimetype for Flattened Devicetree (binary)Stefan Brüns2022-04-193-0/+14
|
* Add mimetype for Devicetree source codeStefan Brüns2022-04-195-0/+35
| | | | | | Make sure at least the first two characters are ASCII, to guard against any binary files. The maximum offset is fairly large, as many files start with a large license stanza.
* 2.2 release2.2David Faure2022-03-272-1/+81
| | | | Fixes #176
* Update translationsDavid Faure2022-03-2773-55293/+55596
|
* model/3mf: newChris Mayo2022-03-223-0/+11
| | | | https://3mf.io/specification/
* *: remove redundant magic priorities and glob weightsVille Skyttä2022-03-171-301/+301
| | | | Both default to 50, remove attributes setting that value.
* Match shared libraries with version suffixDavid Faure2022-03-133-0/+3
| | | | Make sure that libfoo.so.1.2.3 is recognized as shared library
* model/obj: add mtllib and Blender comment based magicVille Skyttä2022-03-132-1/+5
| | | | | Blender produced obj files, such as the one in our test suite, can have a first line comment like "# Blender v2.82 (sub 7) OBJ File: ''"
* model/mtl: add Blender comment magic, increase newmtl rangeVille Skyttä2022-03-131-1/+2
| | | | | Longer range for newmtl in case the Blender comment contains a longish file path.
* model/obj, model/mtl: new typesVille Skyttä2022-03-134-0/+105
| | | | | | https://www.iana.org/assignments/media-types/model/obj https://www.iana.org/assignments/media-types/model/mtl https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/162
* Add Electron Archive Format type application/x-asarKai Uwe Broulik2022-03-133-0/+13
| | | | | | | | | Formerly known as "Atom Shell Archive Format" [1]. Unofficial MIME type also used by NPM "file-type" library [2]. [1] https://github.com/electron/asar [2] https://github.com/sindresorhus/file-type/blob/main/core.d.ts#L274
* text/x-qml: Lower match priority to avoid conflicts with PythonPhilip Withnall2022-03-133-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | GLib takes priorities >= 80 to mean a short-circuit to a magic match, overriding any conflicting matching globs. More generally, high priority magic should only be used if it’s really unlikely that the magic will match anything except the given MIME type. That’s evidently not true here. Some Python files which import Qt modules can look like valid QML files, matching the magic but not the glob. Lower the priority of the magic so that it doesn’t trigger the short-circuit code in GLib. This means the name match is guessed as the right one instead of the magic match. See https://gitlab.gnome.org/GNOME/glib/-/blob/6ee71750a532d8de5eaed5cf12e8718738ddd5c6/gio/gcontenttype.c#L840 and https://gitlab.gnome.org/GNOME/glib/-/issues/2599. Tested with `XDG_DATA_DIRS=$buildroot/share gio info ./not-qml.py`. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #84
* Various comment improvementsVille Skyttä2022-03-131-6/+6
| | | | | | | - BCPIO are archives, call them as such - Remove apparently inadvertent plural from Gradle script - Improve phrasing and consistency for manual page files - Add missing dash to DTS-HD
* Move '*.blend' to top of Blender glob listFrank Dana2022-02-201-1/+1
| | | | | | | | | | | | | | The globs for Blender scene files listed three possible matches, with "*.blender" first, followed by two variations on "*.blend" (lowercase and all-caps). But Blender names its scene files "filename.blend", and always has. Having "*.blender" listed first is problematic, because some tools (e.g. GNOME Control Center) show only the first glob when describing a type. As a result, its interface was claiming that Blender is the default application for "*.blender" files, when it should be shown as the default for "*.blend" files.
* Adding SPARQL media typesGiovanni Alfredo Garciliano Díaz2022-02-164-0/+60
|
* application/zip: Add `*.zipx` glob and test fixtureMark Ultra2022-02-143-0/+3
|
* Added DSD mime typeFelix Plamper2022-02-084-0/+35
|
* Differentiate comic book archivesFrank Dana2022-02-071-4/+4
|
* FITS: Add missing `application/fits` and legacy globsAllison Reid2022-01-242-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `image/fits` an alias, matching its designation of a subset of the FITS standard, as per https://datatracker.ietf.org/doc/html/rfc4047#section-5 - "The general nature of the full FITS standard requires the use of the media type "application/fits". Nevertheless, the principal intent for a great many FITS files is to convey a single data array in the PHDU, and such arrays are very often 2-dimensional images. Several common image viewing applications already display single-HDU FITS files, and the prototypes for virtual observatory projects specify that data provided by web services be conveyed by the data array in the PHDU. These uses justify the registration of a second media type, namely "image/fits", for files which use the subset of the standard described by the original FITS standard paper." The existing alias `image/x-fits` was common before the standardization of `application/fits` and `image/fits`, so it should stay. Current standards and historical contexts can be found here: - https://fits.gsfc.nasa.gov/fits_standard.html - https://listmgr.nrao.edu/pipermail/fitsmime/2002-December/thread.html - https://www.ucolick.org/~sla/fits/mime/comments.html Add missing eight-dot-three-style `*.fit` and `*.fts` globs for legacy files, matching the list supported by `libvips`, i.e., https://github.com/libvips/libvips/blob/757d03100566368e5d06c7355e73c1215dd34968/libvips/foreign/fits.c#L132 And as discussed in the FITS standard definition (`fits_standard40aa-le.pdf`) - "In the absence of other information it is reasonably safe to presume that a file name ending in ‘.fits’ is intended to be a FITS file. Nevertheless, there are other commonly used ex- tensions; e.g., ‘.fit’, ‘.fts’, and many others not suitable for listing in a media type registration."
* Add Godot engine filesMichael Alexsander2021-12-1310-1/+280
|
* Add FlashForge "xgcode" mime-typeBastien Nocera2021-12-123-0/+9
| | | | | | | FlashForge's FlashPrint software uses gcode with a binary header containing extra data to save sliced models. Seeing as they have a known magic and that we might want to use them outside of FlashPrint itself, add a mime-type.
* text/x-objc++src: new typeIgor Kushnir2021-12-129-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | This MIME type name is used in Qt Creator [1] and KDevelop [2]. A different name - text/x-objcpp-src - is used in KSyntaxHighlighting [3]. The name text/x-objc++src is consistent with the existing MIME type names text/x-c++src and text/x-objcsrc. So KSyntaxHighlighting's name will have to be replaced later. The Objective-C Wikipedia article and the KSyntaxHighlighting's data file [3] claim that *.M is one of the file extensions of Objective-C++ source files. But since macOS's file system is case-insensitive by default, *.mm is used almost universally. Thus there is no need to complicate the MIME type database with case-sensitive attributes. Make text/x-troff-mm a subclass of text/troff to reuse its magic element. As far as I can tell, these two file formats share the same comment syntax, which is encoded in text/troff's magic. Add Objective-C, Objective-C++, Troff, Troff MM and C tests to verify correct detection of the new MIME type and the absence of regressions. [1] https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/cppeditor/CppEditor.json.in?id=2cc28dea65846153d16c213283ffac7af530590d#n100 [2] https://invent.kde.org/kdevelop/kdevelop/-/blob/ebd207cca2387b5734a591803381880505e39a30/plugins/astyle/astyle_plugin.cpp#L284 [3] https://invent.kde.org/frameworks/syntax-highlighting/-/blob/0b2c0dc5368de519c4e9517a4dec69017df4cd6c/data/syntax/objectivecpp.xml#L3
* image/heif: test .hif extension tooVille Skyttä2021-12-122-1/+1
| | | | https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/151#note_1098689
* image/hif: add *.hif globVille Skyttä2021-12-121-0/+1
| | | | Refs https://www.iana.org/assignments/media-types/image/heif
* image/heif: add another test caseVille Skyttä2021-12-122-0/+2
|
* image/heif: add magicsVille Skyttä2021-12-122-2/+10
| | | | https://nokiatech.github.io/heif/technical.html
* Add a build-tools option to allow installing only the mime dataAlex Richardson2021-12-122-6/+11
| | | | | | | When set to false this allows installing only the data files but not the update-mime-database program. This is useful for me since I am cross-compiling for an architecture that does not have a working glib-2.0 port yet.
* Add more acronymsVille Skyttä2021-12-111-0/+38
|
* Add compressed SVG glob pattern `*.svg.gz`Gaël Bonithon2021-12-111-0/+1
|
* Add Apple Wallet pass type application/vnd.apple.pkpassKai Uwe Broulik2021-12-023-0/+11
| | | | | | | De-facto standard mentioned by Apple in [1] and [2]. [1] https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/DistributingPasses.html [2] https://developer.apple.com/documentation/walletpasses/send_an_updated_pass
* migrate from custom itstool to builtin msgfmt for creating translated XMLEli Schwartz2021-11-215-27/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | gettext upstream has supported this for a very long time (since 0.19.7 via commit b3c2a5a242c36fbbaa0c5b17f975d6c638598a23, released in 2015), and itstool is (mostly) a legacy of the time before gettext had proper support for these sorts of use cases. This is similar to the state of intltool, which is described at https://wiki.gnome.org/MigratingFromIntltoolToGettext During the port from autotools to meson, the legacy use of itstool was faithfully translated to meson in the only way possible: by jumping through hoops to run ninja inside ninja in order to generate the .mo files for itstool, because meson's i18n module used a flawed design and there was no "real" target to create those files, only a .PHONY run_target which other rules cannot depend on. Although meson 0.60.0 added support for real targets for the built .mo files, this changed the rules for output filenames, breaking the script. But msgfmt does not care, and anyways comes with builtin meson functions for convenient use with XML files. So let's take this opportunity to drop legacy dependencies and use the modern, builtin tooling, which fixes this bug as a side effect. Fixes #170
* Make the remaining plain text types subclasses of text/plainAlex Henrie2021-10-101-0/+10
| | | | | These omissions were identified by searching the document for types without a superclass and then manually reviewing the resulting list.
* Generate and commit a missing test fileIgor Kushnir2021-10-101-0/+1
| | | | | | | | | | | | | b969e1c74e7c905a96c1590f5350a264dbaa83ae added a reference to this file and a command to generate it into tests/mime-detection/list, but didn't commit the generated file itself. Now when test-mime fails for some other reason (e.g. after adding a failing test case), the following error message is printed: Could not open /path/to/shared-mime-info/tests/mime-detection/test-not-dtshd.txt Presumably when the test file does not exist, the intended 'data' test does not run. The testing system should be improved to report such nonexistent file issues as test failures.
* audio/mobile-xmf: separate from audio/x-xmfVille Skyttä2021-10-101-2/+10
| | | | | https://www.iana.org/assignments/media-types/audio/mobile-xmf https://www.iana.org/assignments/media-types/audio/vnd.nokia.mobile-xmf