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

List:       kfm-devel
Subject:    Re: web archive in konq
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-06-19 13:24:45
[Download RAW message or body]

On Tuesday 19 June 2001 15:36, Andreas Schlapbach wrote:
> On Tuesday 19 June 2001 14:03, David Faure wrote:
> > On Tuesday 19 June 2001 14:37, Malte Starostik wrote:
> > > On Dienstag, 19. Juni 2001 14:20, Dawit Alemayehu wrote:
> > > > On Tuesday 19 June 2001 07:08, Malte Starostik wrote:
> > > > > Hi,
> > > > >
> > > > > I've written a small preview plugin for the web archiver konq-plugin
> > > > > in kdeaddons. To make it work, the plugin generates the archive as
> > > > > .war and I put a x-webarchive.desktop file so that .war is recognized
> > > > > as application/x-webarchive and the thumbnail ioslave will handle it.
> > > > > So far so good. The problem however is that now konq asks what to
> > > > > open the file with when I click on it (it's a gzipped tarball).
> > > > > Ideally it should open it with khtml as tar:/foobar.war/index.html.
> > > > > If it continued recognizing it as a tarball would be nice too, so one
> > > > > can browse it. Is there any way to achieve this via a .desktop file?
> >
> > This is currently hardcoded in konq, see the code below
> >   //////////// Tar files support
> > in
> > bool KonqMainWindow::openView( QString serviceType, const KURL &_url,
> > KonqView *childView, KonqOpenURLRequest req )
> >
> > Sorry, never found time to implement a more generic solution for this.
> 
> So I've to hack there?

Yes, add the mimetype there, or implement a .desktop file based solution ;-)

> MeTz just came up with another approach: Opening with tgz and then use <open 
> with index.html>

I don't understand ? What's "opening with tgz" ? Opening with kio_tar ?
For that you need to hack the above anyway.

> P.S: Make war not love.
??

-- 
Per his initials, God was simply a "Great Oop Developer" (Richard Bos)
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

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