[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Help needed: mimetype problem in Cervisia
From:       Christian Loose <christian.loose () hamburg ! de>
Date:       2004-04-23 16:08:07
Message-ID: 200404231808.07686.christian.loose () hamburg ! de
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic