summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/freedesktop.org.xml.in2
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/not-qml.py3
3 files changed, 6 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 4840c3ea..367483a7 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -2019,7 +2019,7 @@ command to generate the output files.
<mime-type type="text/x-qml">
<comment>Qt Markup Language file</comment>
<sub-class-of type="text/plain"/>
- <magic priority="80">
+ <magic priority="50">
<match type="string" value="/bin/env qml" offset="2:16"/>
<match type="string" value="import Qt" offset="0:3000">
<match type="string" value="{" offset="9:3009"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 74257889..77c5d79a 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -412,6 +412,8 @@ test.py3 text/x-python3
test.pyi text/x-python3 ox
# PySide
pyside.py text/x-python
+# https://ru.stackoverflow.com/questions/1381587/%d0%9d%d0%b5%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d1%8c%d0%bd%d0%be-%d1%80%d0%b0%d1%81%d0%bf%d0%be%d0%b7%d0%bd%d0%b0%d1%91%d1%82-py-%d1%84%d0%b0%d0%b9%d0%bb/1381685
+not-qml.py text/x-python ox
# SageMath
example_mime.sage text/x-sagemath oxo
# Perl
diff --git a/tests/mime-detection/not-qml.py b/tests/mime-detection/not-qml.py
new file mode 100644
index 00000000..9e78f029
--- /dev/null
+++ b/tests/mime-detection/not-qml.py
@@ -0,0 +1,3 @@
+from PyQt5 import QtCore
+
+# {