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
** Summary changed:
- glob in mime/packages/freedesktop.org.xml is matching wrong files
+ <match> in mime/packages/freedesktop.org.xml is matching wrong files
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to shared-mime-info in Ubuntu.
https://bugs.launchpad.net/bugs/2041672
Title:
<match> in mime/packages/freedesktop.org.xml is matching wrong files
Status in shared-mime-info package in Ubuntu:
New
Bug description:
/usr/share/mime/packages/freedesktop.org.xml
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/2041672/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp