summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2024-06-02 19:20:05 -0600
committerDavid Faure <faure@kde.org>2024-06-16 10:26:09 +0000
commita28626acf325bf9b92b0dd60bc914fbde883ea79 (patch)
tree7e0f882f7e00f773e68ef0e0d2b9c6cc81f3f773
parentb8ba60d230607963d96aa9b83a57cff91fe4f5e5 (diff)
Recognize *.lib as application/x-archive
Putting the *.lib glob in application/vnd.microsoft.portable-executable was a mistake: Windows actually uses the same container format as Unix for static libraries.
-rw-r--r--data/freedesktop.org.xml.in2
-rw-r--r--tests/mime-detection/StaticLib1.libbin0 -> 6278 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 3 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index e719a97..2c6b6f2 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1783,6 +1783,7 @@ command to generate the output files.
</magic>
<glob pattern="*.a"/>
<glob pattern="*.ar"/>
+ <glob pattern="*.lib"/>
</mime-type>
<mime-type type="application/x-arj">
<comment>ARJ archive</comment>
@@ -3602,7 +3603,6 @@ command to generate the output files.
<glob pattern="*.efi"/>
<glob pattern="*.ocx"/>
<glob pattern="*.sys"/>
- <glob pattern="*.lib"/>
</mime-type>
<mime-type type="application/x-ms-pdb">
<comment>Windows program database</comment>
diff --git a/tests/mime-detection/StaticLib1.lib b/tests/mime-detection/StaticLib1.lib
new file mode 100644
index 0000000..920f34c
--- /dev/null
+++ b/tests/mime-detection/StaticLib1.lib
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index a2b96dd..e720da1 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -623,6 +623,8 @@ test.zipx application/zip
# From /usr/lib64/vlc/libcompat.a
libcompat.a application/x-archive
libcompat.ar application/x-archive
+# Created with Visual Studio 2022
+StaticLib1.lib application/x-archive
# Created by hand
foo-0.1-1.fc18.src.rpm application/x-source-rpm ox
# Created using sharutils 4.11.1