Bug 292378 - media type application/x-konsole is unsupported
Summary: media type application/x-konsole is unsupported
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: ksycoca (show other bugs)
Version: 4.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 10:20 UTC by Christopher Yeleighton
Modified: 2013-09-25 14:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2012-01-25 10:20:42 UTC
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.
Comment 1 David Faure 2012-01-25 11:31:04 UTC
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.
Comment 2 Christopher Yeleighton 2012-01-25 11:45:30 UTC
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).
Comment 3 Jekyll Wu 2012-03-11 11:46:53 UTC
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.
Comment 4 Jekyll Wu 2012-10-31 10:59:40 UTC
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.
Comment 5 Kurt Hindenburg 2013-09-25 14:06:22 UTC
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
Comment 6 Kurt Hindenburg 2013-09-25 14:49:27 UTC
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