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 a= dvanced 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 forgo= t to put Advanced Editor in the list of "embedding services" because it was already in the "applic= ations" (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 [P= review in]. Ah, oh... Ok, I know where this strange behaviour comes from...... We sav= e 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", i= t appears in both lists. (The real problem is : if two applications appear in both lists, A is pre= ferred 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 mimet= ype 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 f= rom 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 t= hey 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 o= ne list, it moves in the other according to the preference numbers, so that both l= ists remain consistent and saving them is possible... But both quick fixes don't allo= w full flexibility... Opinions ? >Another strange thing with the [Edit file type...] is that when I try to= add Quanta to the=20 >[Application Preference order] it wont be added. When opening the Edit f= ile type window=20 >again Quanta is removed... Hmm, this should work. Do you have a quanta.desktop created after this, i= n ~/.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 ? --=20 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