summaryrefslogtreecommitdiffstats
path: root/resources/freedesktop/org.wireshark.Logray-mime.xml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/freedesktop/org.wireshark.Logray-mime.xml')
-rw-r--r--resources/freedesktop/org.wireshark.Logray-mime.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/resources/freedesktop/org.wireshark.Logray-mime.xml b/resources/freedesktop/org.wireshark.Logray-mime.xml
new file mode 100644
index 0000000..3b49e2d
--- /dev/null
+++ b/resources/freedesktop/org.wireshark.Logray-mime.xml
@@ -0,0 +1,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>