summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* application/x-apple-systemprofiler+xml: require _SPCommandLineArguments in plistwork/scop/jpeg-vs-systemprofilerVille Skyttä2021-09-082-1/+6
| | | | | | | | | | | | | | Look for `<key>_SPCommandLineArguments</key>` in addition to plist root element to distinguish from other property list XML files. Our offset specifiers aren't that fancy, so this can trigger on files that have the above string ´_before_ `<plist version="1.0"`, but those should be quite pathological cases. Start offset 34 is length of `<plist version="1.0"><array><dict>`, 384 is arbitrary guesswork. Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/169
* image/jpeg: add test case with embedded property list XMLVille Skyttä2021-09-082-0/+4
| | | | https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/169
* audio/vnd.dts.hd: include parent type magic in magic matchVille Skyttä2021-08-112-1/+5
| | | | | | | | | | | | | | | | | | | Matching just 0x64582025 within the first 18725 bytes of any file is prone to false positives. The priority of the magic match here being bumped to 60 seems to indicate intent to make it take precedence over the parent `audio/vnd.dts`. But we should take the parent magic into account here as it does not "inherit" with `sub-class-of`. As the comment for this match says "16bits HD be", accept only "16bits core be" as the parent at least for now, not all possible parent magics -- it would not seem consistent to have it in "14bits" variants, or the "16bits core le" one. The test case we have for this is one matching "16bits core be". Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/166 Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/167
* model/gltf+json: new typeVille Skyttä2021-07-293-0/+64
| | | | https://www.iana.org/assignments/media-types/model/gltf+json
* model/gltf-binary: new typeVille Skyttä2021-07-293-0/+11
| | | | https://www.iana.org/assignments/media-types/model/gltf-binary
* application/x-object: add *.mod and a test caseVille Skyttä2021-07-303-1/+3
| | | | | | For GRUB modules. Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/165
* application/x-mod: add some ProTracker magics and a test caseVille Skyttä2021-07-303-0/+4
| | | | https://wiki.multimedia.cx/index.php/Protracker_Module#File_Format
* *: delete trailing whitespaceVille Skyttä2021-07-305-42/+41
|
* image/jxl: include test files in test listVille Skyttä2021-06-301-0/+2
| | | | | | | | I failed to include the test files in the list in 238f20f82d485dafa16904c5bd1b07c8034ddacd, and unfortunately can no longer remember their origin. I likely took an existing one from the test suite and converted from it, but the details and tools used escape me.
* tests: add trailing linefeed to mime-detection listVille Skyttä2021-06-281-1/+1
| | | | | | My editor keeps adding it (which is nice), but I need to remove it manually all the time not to include it as unrelated whitespace in other commits (which is not). Just add it.
* Make application/x-mswinurl a subclass of text/plainAlex Henrie2021-06-281-0/+1
| | | | | | If the user has no program installed that handles .url files, the file should open in a text editor so that the user can copy and paste the URL manually.
* Change description for *.desktop files to "desktop entry"David Faure2021-06-281-1/+1
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/67
* application/x-x509-ca-cert: add magics and test casesVille Skyttä2021-06-244-0/+68
| | | | | | "BEGIN/END CA CERTIFICATE" seems to be a thing, although not that common. "BEGIN/END TRUSTED CERTIFICATE" is an OpenSSL marker for trusted certificates, see x509(1).
* application/pkix-cert: add BEGIN/END X509 CERTIFICATE magicVille Skyttä2021-06-243-0/+33
|
* application/pkix-crl: add magic and test caseVille Skyttä2021-06-243-0/+22
|
* application/pkix-cert: add magic and test caseVille Skyttä2021-06-243-0/+35
|
* image/jxl: new typeVille Skyttä2021-06-063-0/+8
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/159
* Added .sc filename extension for Scala source code, as it is occasionally usedBrennon Miller2021-05-281-0/+1
|
* application/schema+json: new typeAlex Henrie2021-05-283-0/+18
| | | | | | | JSON Schema files are distinguished from other JSON files by a "$schema" property which is typically at the beginning of the file. https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00
* Add text/x-crystalGeopJr2021-05-283-0/+9
|
* application/x-krita: remove stray period from commentVille Skyttä2021-05-271-1/+1
| | | | | | | | Commit d033c511c9851e63ed44c0c7bdba2b689396aded added it but didn't state a reason, assuming accidental because that's not what we usually do. Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/114
* adding org-modeGiovanni Alfredo Garciliano Díaz2021-05-273-0/+23
|
* Add Elixir source code mime typeNicolas Morais2021-05-271-0/+6
|
* Add two new offsets for .kra and .krzHalla Rempt2021-05-271-1/+5
|
* text/x-python3: add *.pyi glob (Python stub files)Illia Volochii2021-05-273-0/+3
| | | | | | | | | | Stub files are files containing type hints, they are written in normal Python 3 syntax, but generally leaving out runtime logic like variable initializers, function bodies, and default arguments. https://www.python.org/dev/peps/pep-0484/#stub-files https://mypy.readthedocs.io/en/stable/stubs.html#stub-file-syntax
* image/x-canon-cr3: newChris Mayo2021-05-151-1/+8
| | | | | | Supported since LibRaw 202101 snapshot. https://github.com/lclevy/canon_cr3
* image/x-xpixmap: make XPM3 magic more specificVille Skyttä2021-05-131-1/+1
|
* image/x-xpixmap: add XPM2 magicVille Skyttä2021-05-133-0/+14
| | | | https://en.wikipedia.org/wiki/X_PixMap#XPM2
* application/x-troff-man: add *.[1-9] globVille Skyttä2021-05-132-0/+2
|
* application/toml: new typeVille Skyttä2021-05-123-0/+33
| | | | | | https://toml.io/en/v1.0.0#mime-type Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/156
* Lower priority of "BEGIN {" for perl, awk uses that toowork/dfaure/issue155David Faure2021-04-253-1/+5
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/155
* Add Smacker video type video/vnd.radgamettools.smackerKai Uwe Broulik2021-04-181-0/+10
| | | | Magic is inspired by ffmpeg's `smacker_probe` function in libavformat/smacker.c
* Use meson dist for releasingwork/dfaure/hacking_fixDavid Faure2021-04-142-2/+10
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/152
* Clarify database licensewip/hadess/clarify-licenseBastien Nocera2021-03-231-4/+4
| | | | | | | | | It was intended to be under the GNU GPL v2 or later, as per the license fields as visible in Debian and Fedora packages. http://changelogs.ubuntu.com/changelogs/pool/main/s/shared-mime-info/shared-mime-info_2.0-1/copyright https://metadata.ftp-master.debian.org/changelogs//main/s/shared-mime-info/shared-mime-info_1.10-1_copyright https://src.fedoraproject.org/rpms/shared-mime-info/blob/rawhide/f/shared-mime-info.spec#_5
* Make programming check more forcefulwip/hadess/misc-fixesBastien Nocera2021-03-181-1/+1
| | | | | | | | | | | | | | Coverity complains that a g_return_if_fail() that checks on parse_value() respecting its API might leak. Be more forceful, and assert() instead. Can't leak if you crash *taps temple*. shared-mime-info-2.1/src/update-mime-database.c:1482: alloc_arg: "parse_value" allocates memory that is stored into "parsed_mask". shared-mime-info-2.1/src/update-mime-database.c:1488: leaked_storage: Variable "parsed_mask" going out of scope leaks the storage it points to. 1486| { 1487| g_string_free(parsed_value, TRUE); 1488|-> g_return_if_fail(parsed_mask == NULL); 1489| } 1490| else
* tests: Fix running staging testBastien Nocera2021-03-182-10/+10
| | | | | | | | The staging test is supposed to be an easy way to determine whether database changes were taken into account. Run it as part of the test suite, and make sure that the script doesn't fail if we can't find files to determine the mime-types of.
* meson: make xmlto optional, build spec only if foundVille Skyttä2021-03-022-11/+13
| | | | Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/150
* application/x-7z-compressed: add *.7z.001 globVille Skyttä2021-02-243-0/+2
| | | | These are the first files of a multivolume archive.
* Add Bink video type video/vnd.radgamettools.binkKai Uwe Broulik2021-02-131-0/+25
| | | | Magic is inspired by ffmpeg's `probe` function in libavformat/bink.c
* image/x-nikon-nrw: add test caseVille Skyttä2021-02-072-0/+2
| | | | https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/124#note_788636
* image/x-nikon-nrw: new typewip/scop/nikon-nrwVille Skyttä2021-01-311-0/+6
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/124
* application/x-vhdx-disk: improve acronym and its expansionwip/scop/virtualization-imagesVille Skyttä2021-01-161-2/+2
| | | | https://en.wikipedia.org/wiki/VHD_(file_format)#Virtual_Hard_Disk_(VHDX)
* application/ovf: newVille Skyttä2021-01-133-0/+17
| | | | https://en.wikipedia.org/wiki/Open_Virtualization_Format
* application/x-qed-disk: newVille Skyttä2021-01-133-0/+11
| | | | https://wiki.qemu.org/Features/QED
* application/x-vdi-disk: newVille Skyttä2021-01-133-0/+17
| | | | https://en.wikipedia.org/wiki/VirtualBox#VirtualBox_Disk_Image
* application/x-vmdk-disk: newVille Skyttä2021-01-133-0/+13
| | | | https://en.wikipedia.org/wiki/VMDK
* application/x-vhd-disk, /x-vhdx-disk: newVille Skyttä2021-01-134-1/+26
| | | | https://en.wikipedia.org/wiki/VHD_(file_format)
* application/vnd.apple.numbers, .pages: add older magics and test casesVille Skyttä2021-01-104-0/+6
| | | | | Numbers 3.5 and Pages 5.5 appear to place an Index/Document.iwa, not index.xml there.
* Add text/x-dartJan Tojnar2021-01-103-0/+11
| | | | | | Dart is a programming language by Google. https://dart.dev/
* application/vnd.apple.numbers, /vnd.apple.pages: new typeswip/scop/vnd-apple-issue136Ville Skyttä2021-01-091-0/+24
| | | | | | | | | | Magic between the two seems indistinguishable, prioritize pages for (upcoming?) test stability. https://www.iana.org/assignments/media-types/application/vnd.apple.numbers https://www.iana.org/assignments/media-types/application/vnd.apple.pages Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/136