Problem with service menu filters for displayed web pages

David Faure dfaure at klaralvdalens-datakonsult.se
Sun Sep 14 19:45:49 BST 2003


On Sunday 14 September 2003 20:13, Waldo Bastian wrote:
> On Sunday 14 September 2003 17:52, Petter E. Stokke wrote:
> > I've got a service menu that I want to work on all text documents (ie.
> > mimetype text/*), including web pages being displayed in Konqueror.
> > However, setting "ServiceTypes=text/*" or even "ServiceTypes=text/html"
> > in the desktop file only displays the action in the context menu for
> > links on web pages, or files in the file browser, not if you just
> > right-click on a displayed HTML document. I have to use
> > "ServiceTypes=allfiles" to get it to display in this case, which is
> > clearly not a good thing, as the action will then also show up in places
> > where it makes no sense whatsoever.
> >
> > Can anyone enlighten me as to how I can accomplish what I want here?
> 
> Try "text/all"

There is no support for text/all. There is support for text/* (for servicemenus
only, not in the rest of KDE) though.

text/* should work - I suggest adding debug output to kdebase/libkonq/konq_popupmenu.cc
around line 536 and below (print out m_sMimeType in particular).

-- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions




More information about the kfm-devel mailing list