Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S shared-mime-info
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xdg
  • shared-mime-info
  • Issues
  • #166
Closed
Open
Issue created Aug 05, 2021 by Tagwerk@Tagwerk19

Mimetype - MPEG-2 TS .ts video file flagged as text/vnd.qt.linguist

SUMMARY:

A MPEG-2 TS file, saved with a .ts extension is flagged as text/vnd.qt.linguist

STEPS TO REPRODUCE:

Download a .m2ts file, check with

    xdg-mime query filetype testfile.m2ts 

it would be shown as "video/mp2t". Rename to .ts and repeat... 

OBSERVED RESULTS

$ xdg-mime query filetype x.ts
text/vnd.qt.linguist 

EXPECTED RESULTS

$ xdg-mime query filetype x.ts
video/mp2t

SOFTWARE/OS VERSIONS

Neon Testing

Plasma : 5.22.4
Frameworks : 5.85.0
Qt : 5.15.5 

ADDITIONAL INFORMATION

Seems to be an issue with the "magic" for the MPEG-2 TS entry, it has
priority "50". The Linguist entry also has an implicit priority of 50
(the default priority)

If the MPEG-2 TS priority is increased to 70 in an "override.xml" file
(in /usr/share/mime/packages folder), this fixes this issue

Logged in KDE as:
    https://bugs.kde.org/show_bug.cgi?id=440631
originally:
    https://bugs.kde.org/show_bug.cgi?id=420939


Format For Printing  - XML  - Clone This Bug  - Top of page 


    Home | New | Browse | Search | 

[?] | Reports | Requests | Help | New Account | Log In | Forgot Password

Assignee
Assign to
Time tracking