Help needed: mimetype problem in Cervisia

Christian Loose christian.loose at hamburg.de
Fri Apr 23 17:08:07 BST 2004


Hi everybody,

since we are already on the topic of mimetypes I thought it's a good time to 
add one of my problems with it... :)

At the moment we have a problem in Cervisia  that I can't seem to resolve. 
Please see BR #77440 (http://bugs.kde.org/show_bug.cgi?id=77440), it's about 
the edit file action Cervisia provides.

When activated Cervisia uses KRun to start an external editor for the selected 
file. This works pretty well with source code files but it fails e.g. with 
HTML documents, because it starts Konqueror (Viewer) instead of Quanta or 
Kate (Editor).

That's because AFAIK KRun starts the preferred application that can _handle_ 
the given mimetype. But for the edit file action to make sense we need a 
mechanism to retrieve the preferred _editor_ for the selected file.

So far I couldn't find anything in our API that would give me this list of 
editors. 

Did I miss something? Ideas?

Thanks for your help!

-- 
Christian Loose
Cervisia - http://www.kde.org/apps/cervisia




More information about the kde-core-devel mailing list