Intergrating mht file to konqueror

Raul Fernandes rgfernandes at correioweb.com.br
Sun Nov 7 21:36:35 GMT 2004


> One solution would be to have in the desktop file something like
>
> [Property::X-KDE-LocalProtocol]
> Type=QString
> Value=mht
>
> [Property::X-KDE-LocalFile]
> Type=QString
> Value=index.html
>
> [Property::X-KDE-LocalServiceType]
> Type=QString
> Value=text/html
>

It would be better if in stat() you redirect to index.html.
As example (modified from floppy kioslave):

::stat( const KURL & _url )
{
  KURL url(_url);
  QString path(url.path());
  if ( path.right( 1 ) == "/" )
  {
      path += "index.html";
      url.setPath( path );
      redirection(url);
      finished();
      return;
   }
(..)
}

Otherwise, we have to change the konqueror code again.
What do you think??

Regards

Raul Fernandes
rgfernandes at correioweb.com.br




More information about the kfm-devel mailing list