Public bug reported:

/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

** Affects: shared-mime-info (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: mime pyside pyside2 pyside6 python qt

** Summary changed:

- glob in mime/packages/freedesktop.org.xml is matching wron files
+ glob in mime/packages/freedesktop.org.xml is matching wrong files

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shared-mime-info in
Ubuntu.
https://bugs.launchpad.net/bugs/2041672

Title:
  glob 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/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to