]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mime: also add magic-based mime type rules for our other binary files 30990/head
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Jan 2024 14:01:24 +0000 (15:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2024 21:52:19 +0000 (22:52 +0100)
No immediate usecase, it's just nice that if you browser these files
with a graphical file manager you see them recognized as what they are.

mime/io.systemd.xml

index cd36f8116c37f15ef5fd439ed86431a20a9100ce..f362006a478a215548971ea6006c835567a1417c 100644 (file)
     <comment>Configuration Extension DDI</comment>
     <glob pattern="*.confext.raw"/>
   </mime-type>
+  <mime-type type="application/x.systemd-journal">
+    <comment>Journal Log File</comment>
+    <magic>
+      <match type="string" value="LPKSHHRH" offset="0"/>
+    </magic>
+  </mime-type>
+  <mime-type type="application/x.systemd-catalog">
+    <comment>Journal Message Catalog</comment>
+    <magic>
+      <match type="string" value="RHHHKSLP" offset="0"/>
+    </magic>
+  </mime-type>
+  <mime-type type="application/x.systemd-hwdb">
+    <comment>Hardware Database</comment>
+    <magic>
+      <match type="string" value="KSLPHHRH" offset="0"/>
+    </magic>
+  </mime-type>
   <mime-type type="application/x.systemd-credential">
     <comment>Encrypted Credential</comment>
     <generic-icon name="security-high"/>