summaryrefslogtreecommitdiffstats
path: root/resources/freedesktop/org.wireshark.Logray-mime.xml
blob: 3b49e2dd4f052a624b0d41630261c7bbfbec15a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>

<!--
    This file allows freedesktop.org-compliant desktops (such as GNOME and
    KDE) to know which files should be opened by what program (and what icon
    to show for the file in a file browser).

    Both magic and file name glob patterns are supported; glob patterns are
    preferred since they don't require opening and reading part of
    the file to determine its type.

    The specification for this file can be found here:
    https://standards.freedesktop.org/shared-mime-info-spec/latest/


    Note that ideally the MIME types listed here should be IANA-registered:

    https://www.iana.org/assignments/media-types/media-types.xhtml

    If your file type is not registered then using one of the
    (not-really-a-good-idea and deprecated) x- media types is the only option
    if you want files to be associated with Wireshark in
    freedesktop.org-compliant file browsers.


    NOTE: if you do add a MIME type here, don't forget to add it to the list
    of MIME types handled by Wireshark in org.wireshark.Logray.desktop.
-->

<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-scap">
    <comment>Sysdig Capture (scap)</comment>
    <generic-icon name="org.wireshark.Logray-mimetype"/>
    <magic>
      <match type="big32"      offset="0" value="0x0a0d0d0a">
	<match type="big32"    offset="8" value="0x1a2b3c4d"/>
      </match>
      <match type="little32"   offset="0" value="0x0a0d0d0a">
	<match type="little32" offset="8" value="0x1a2b3c4d"/>
      </match>
    </magic>
    <glob pattern="*.scap"/>
    <glob pattern="*.scap.gz"/>
  </mime-type>
</mime-info>