<match> in mime/packages/freedesktop.org.xml is matching wrong files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shared-mime-info (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
/usr/share/
line 10466 -> value="import Qt" offset="0:3000"
context:
<magic priority="80">
<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"/>
</match>
<match type="string" value="import Qml" offset="0:3000">
<match type="string" value="{" offset="9:3009"/>
</match>
</magic>
is matching python files using Pyside
with imports like:
from PySide2.QtCore import Qt, QSettings, QSize
considering them 'Qt Markup Language files (text/x-qml)' thus wrecking havoc down the line. Maybe just remove this match entry as it seems very broad
summary: |
- glob in mime/packages/freedesktop.org.xml is matching wron files + glob in mime/packages/freedesktop.org.xml is matching wrong files |
removing
<match type="string" value="import Qt" offset="0:3000">
<match type="string" value="{" offset="9:3009"/>
</match>
and
sudo update- mime-database /usr/share/mime
fixes the issue locally until the next update