[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: Bug#2822: ftp wrong filetype association
From: David Faure <david () mandrakesoft ! com>
Date: 2000-03-15 23:27:18
[Download RAW message or body]
On Sun, Mar 12, 2000 at 11:09:28PM +0100, Ferdinand Gassauer wrote:
> Am Son, 12 Mär 2000 schrieben Sie:
> > On Sun, Mar 12, 2000 at 05:30:21PM +0100, f.gassauer@aon.at wrote:
> > > Package: konqueror
> > > Version: 1.9.0 (KDE Almost 2.0 Alpha)
> > > Severity: normal
> > >
> > > in
> > > ftp://ftp.suse.com/pub/SuSE-Linux/suse_update/KDE/update_for_6.3-i386/kde1
> > > RPM files are displayed as directories
> >
> > Indeed. But if you ask yourself why, you'll realise that there is no
> > way, over FTP, to implement lstat(), i.e. direct access to the thing
> > a link points to. There would be a very inefficient way, of course,
> > which would be to list the parent directory of every of those links,
> > but I'm not sure this solution is acceptable.
> >
> > I just checked : Netscape does the same. It displays dirs for links,
> > because this is what people most usually do (setting up symlinks for
> > dirs in an FTP site, as opposed to doing it for files).
> >
> > 'Unknown' is all that the browser knows about links, but it assumes dirs
> > since this is the most common case....
> >
> > Sorry, no fix for this one. I think the fact that Netscape does the same
> > shows that we can't really do better - we could but that would be
> > most inefficient.
> >
> Hi!
> I just wonder why it was possible in KDE 112 ???
Just realised something : the answer is not because it checked for
extensions, as I thought first, but simply because it _always_ assumed files,
which was _wrong_ in most cases !!
But then... this gave me the solution. Assume dirs when there is no
extension, assume files when there is one. Not 100% perfect, of course,
but it works with all the sites I can remember, because dirs usually
have no extension in the name.
> klicking it opened kpackage - in konqueror I got an error because the rpm is a
> file and not a directory
Should work now - I get the correct icons, but clicking on one takes
forever here and gives nothing... Ah yes.
kio (KRun): Resulting mime type is <null>
Hmm, looks like MimeTypeJob is broken. I'll have to bug Waldo. :-)
Use RMB for now ;-)
Thanks a lot for the report.
--
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
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