[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: application/octer stream hang Konqueror
From: David Faure <faure () kde ! org>
Date: 2005-03-01 17:16:53
Message-ID: 200503011816.54198.faure () kde ! org
[Download RAW message or body]
On Tuesday 01 March 2005 17:41, Tomasz Grobelny wrote:
> On Tuesday 01 of March 2005 16:40, David Faure wrote:
> > On Tuesday 01 March 2005 16:35, Tomasz Grobelny wrote:
> > > but for files without extensions or with unknown
> > > extensions Konqueror displays "application/octet-stream". Why is this the
> > > case if for example for ftp kioslave Konqueror displays "Unknown"?
> >
> > Then it means it's not a known extension... I don't understand the
> > question.
> >
> The question is: why for unknown mimetypes ftp kioslave displays something
> different than my kioslave. Or how can I force Konqueror to display "Unknown"
> mimetype?
Beats me, kio_ftp doesn't set any mimetype by itself [except for symlinks].
You don't have any defaultMimetype=... in your .protocol file, right?
(you shouldn't).
> > KonqRun / KRun is involved here: it starts to download the file and... oh,
> > did you forget to emit mimeType() from get()? This is mandatory.
> Probably that's the problem. But what should I emit if I don't know the
> mimetype?
Use KMimeMagic. See Ftp::ftpGet() in kdelibs/kioslave/ftp/ftp.cc
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic