[frameworks-ktexteditor] [Bug 386595] text/markdown mimetype misidentified as text/x-matlab

2019-08-25 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=386595

Christoph Cullmann  changed:

   What|Removed |Added

 CC||cullm...@kde.org
 Status|REPORTED|RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Christoph Cullmann  ---
Hmm, for me this opens as Markdown.
We might improve the mimetype communicated to the preview plugin via bug 384449
If I misunderstand the issue, please reopen, thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-ktexteditor] [Bug 386595] text/markdown mimetype misidentified as text/x-matlab

2017-11-06 Thread Friedrich W . H . Kossebau
https://bugs.kde.org/show_bug.cgi?id=386595

Friedrich W. H. Kossebau  changed:

   What|Removed |Added

Product|kate|frameworks-ktexteditor
Version|Git |unspecified
  Component|plugin-preview  |general

--- Comment #2 from Friedrich W. H. Kossebau  ---
The preview plugin itself relies on the mimetype info provided from the
ktexteditor API, it does not do any mimetype estimation itself.
So moving to ktexteditor.

Chance is though that detection of markdown files is tricky, as KDE code
usually relies on QMimeDatabase, which uses shared-mime-info as database for
detetion. And that one has only data about the file suffix, no magic bytes
logic (see
https://cgit.freedesktop.org/xdg/shared-mime-info/tree/freedesktop.org.xml.in#n5980
)


Please report the bug about Dolphin separately with Dolphin.

-- 
You are receiving this mail because:
You are watching all bug changes.