khexedit2 shows up everywhere

David Faure faure at kde.org
Mon Feb 28 00:17:39 GMT 2005


On Sunday 27 February 2005 23:53, Friedrich W. H. Kossebau wrote:
> Hi,
> 
> Am Samstag, 26. Februar 2005 16:12, schrieb George Staikos:
> > khexedit2 part has mimetype of all/allfiles.  This makes it show up in
> > konqueror as a handler for files that don't have other parts.  For
> > instance, sites that have flash embedded will show hex editors if the user
> > doesn't have flash installed.  This also prevents the dialog which asks the
> > user to download flash from showing.  How do we fix this but not break the
> > khexedit part?
> 
> Perhaps by adding the option of an explicit flag when asking for a mimetype 
> handler? Explicit as in "Give me only parts who explicitly say to handle the 
> given mimetype; suppress those who handle only mimetypes which are in an 
> IS-ALSO relation to the given one". In the same way one usually would not 
> like to get the text part as fallback if there was no HTML part. Would this 
> work for all other part query usages, too?
> 
> Implementation left to those who know about the part query system.

AllowDefault=false sounds simpler to me, if that works.
That means to let khexedit appear in the "Open With" and "Preview In" submenus
but to not use it by default when left-clicking or embedding the preferred part.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list