Help needed: mimetype problem in Cervisia

Christian Loose christian.loose at hamburg.de
Sun Apr 25 21:55:37 BST 2004


Am Freitag, 23. April 2004 18:08 schrieb Christian Loose:
>
> 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.

Since there wasn't any reply to this part I guess there isn't an API yet. So 
what about a X-KDE-Editor key similar to the existing X-KDE-Text key. Would 
that work?

Christian




More information about the kde-core-devel mailing list