| Summary: | media type application/x-konsole is unsupported | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Christopher Yeleighton <giecrilj> |
| Component: | ksycoca | Assignee: | David Faure <faure> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | konsole-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 4.7 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kdelibs/9106583a7841118a53bd53862a083329736f1bc6 | Version Fixed/Implemented In: | 4.11.2 |
| Sentry Crash Report: | |||
Indeed the application/x-konsole mimetype definition is too broad, any file called *.shell (like all the unit test scripts in kde4...) gets associated with it. Can we remove the mimetype definition? It seems the only use of it is konsole/desktop/quick-access-konsole.desktop. Alternatively, we should refine the mimetype definition, by either 1) changing the extension to something more konsole-specific, or 2) defining the mimetype based on magic contents, not on extensions. If you decide to keep it, it should be a subclass of text/plain (either directly or indirectly), unless you are able to find a supported handler for an application superclass, which I doubt very much, because KDE does not have a handler for shell scripts, because KWrite does not register as a handler for them (although it has a mode for them). Not sure about the best solution, but from the point of view of Konsole : 1). quick-access-konsole.desktop has never been installed by default, because "konsole --background-mode" was and still is not polished enough. I personally see it as a trick other than a feature. 2). Konsole currently ingores non-option arguments in most cases, so I think including "MimeType=..." in quick-access-konsole.desktop is useless. I have just removed that "MimeType=application/x-konsole;" line from quick-access-konsole.desktop, since that line is just useless in that existing file. So removing that mimetype won't influence konsole at all. Actually I simply don't understand what that mimetype is meant for. Git commit a6a76fcc3768417e855a8e384aad71dec44bfc83 by Kurt Hindenburg. Committed on 25/09/2013 at 13:59. Pushed by hindenburg into branch 'KDE/4.10'. media type application/x-konsole is unsupported remove "application/x-konsole" Patch/research by Jekyll Wu - "ship it" from David Faure REVIEW: 107167# FIXED-IN: 4.11.2 M +0 -4 mimetypes/kde.xml http://commits.kde.org/kdelibs/a6a76fcc3768417e855a8e384aad71dec44bfc83 Git commit 9106583a7841118a53bd53862a083329736f1bc6 by Kurt Hindenburg. Committed on 25/09/2013 at 13:59. Pushed by hindenburg into branch 'KDE/4.11'. media type application/x-konsole is unsupported remove "application/x-konsole" Patch/research by Jekyll Wu - "ship it" from David Faure REVIEW: 107167# FIXED-IN: 4.11.2 (cherry picked from commit a6a76fcc3768417e855a8e384aad71dec44bfc83) M +0 -4 mimetypes/kde.xml http://commits.kde.org/kdelibs/9106583a7841118a53bd53862a083329736f1bc6 |
Version: 4.7 (using KDE 4.7.2) OS: Linux When you build apper, /usr/share/kde4/apps/cmake/modules/kde4_exec_via_sh.cmake creates a file named apper_executable.shell. For now, I have no idea what the file is for, since it is not executable. I am unable to open it. Reproducible: Always Steps to Reproduce: 1. { kioclient exec apper_executable.shell; } Actual Results: 1. No handler for media type application/x-konsole. Expected Results: 1. maybe open in KWrite? OS: Linux (x86_64) release 3.1.0-1.2-desktop Compiler: gcc I think the media type application/x-konsole should be removed as frivolous.