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

List:       kde-core-devel
Subject:    Re: Bug#12562: Very annoying bug when editing html file type
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-10-09 12:53:02
[Download RAW message or body]

On Sun, 08 Oct 2000, Bjorn Westlin wrote :
> Hi.
> In konqueror I right click on an .html file and chose [Edit file type...].
> In there I add Advanced Editor to the [Application Preference order].
> 
> Aftre this, viewing a html file in konqueror will be done throught the advanced \
> editor. This is confirmed by right clicking on an .html file and looking un the \
> sub-menu [Preview in] where Advanced editor is listed first.

Yes.
Hmm, just tried that and fixed a bug in the file type editor, which forgot to put \
Advanced Editor in the list of "embedding services" because it was already in the \
"applications" (but it should indeed be in both).

> However, removing Netscape from the [Application Preference order] will make \
> everything work. The strangest thing now is that KHTML is listed first in the \
> sub-menu [Preview in].

Ah, oh... Ok, I know where this strange behaviour comes from...... We save the \
preference number twice, once for the application and once for the embedding \
service...... This is getting hairy. Each application has ONE preference number, but \
if it appears in both lists, there is a problem. And this is the case with "Advanced \
Editor", it appears in both lists. (The real problem is : if two applications appear \
in both lists, A is preferred over B in one list but B is preferred over A in the \
other, there's no way to model that with one preference number per application),

What we really want is, for each application, a preference for each mimetype or \
servicetype it handles........ but that's too big a change for now. And even that \
isn't easy since this about the preference for handling text/html as a Browser/View, \
which is different from the preference for handling text/html as an \
Application....... Argl.

The only fix I can see would be to change the filetypes dialog so that it matches the
underlying design : one list of applications, with a flag to mention if they can be \
embedded or not, but this way the preferences are absolute (only one list).... But \
this changes the UI _a lot_.

Another solution would be that when moving an application up or down in one list,
it moves in the other according to the preference numbers, so that both lists remain
consistent and saving them is possible... But both quick fixes don't allow full \
flexibility...

Opinions ?

> Another strange thing with the [Edit file type...] is that when I try to add Quanta \
> to the  [Application Preference order] it wont be added. When opening the Edit file \
> type window  again Quanta is removed...

Hmm, this should work. Do you have a quanta.desktop created after this, in \
~/.kde/share/applnk ? Does it mention the mimetype (text/html if I understood \
correctly) in its MimeType (or ServiceTypes) line ? Does running "kbuildsycoca" fix \
the problem ?

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://www.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2


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

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