https://bugs.kde.org/show_bug.cgi?id=413734
Bug ID: 413734 Summary: The preview plugin takes mimetype from kate document type Product: kate Version: 19.08.2 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: plugin-preview Assignee: kwrite-bugs-n...@kde.org Reporter: sgd.or...@gmail.com Target Milestone: --- SUMMARY The preview plugin takes mimetype from kate document type which results in selecting wrong preview kpart application. STEPS TO REPRODUCE 1. Open some Qt UI file in kate. Kate rightly sets its mode to XML. 2. Open preview toolview. The plugin shows preview with some kpart. OBSERVED RESULT The plugin see internal kate mode as XML, so it tries to search for applications capable of opening text/xml mimetype. In my case it finds khtml and opens it in it. If there is not preview kpart for text/xml mimetype it goes down the list and selects something which is base on xml, in my case it thought the UI file was text/rdf and started akregator. When kate mode is changed to something strange, what probably does not have default preview kpart, the plugin probably read file mimetype and selects kpart application based on that, which results in good preview. EXPECTED RESULT The preview application is decided on real file mimetype, not on kate mode. SOFTWARE/OS VERSIONS Operating System: Artix Linux KDE Plasma Version: 5.17.1 KDE Frameworks Version: 5.63.0 Qt Version: 5.13.1 Kernel Version: 4.19.80-1-lts OS Type: 64-bit Processors: 2 × Intel® Pentium® CPU B980 @ 2.40GHz Memory: 7,6 GiB of RAM ADDITIONAL INFORMATION Bad workaround is to set default application for text/xml (or any othe) mimetype to one which you preffer. The drawback is if you work with more filetypes which are using same mode in kate. -- You are receiving this mail because: You are watching all bug changes.