konquerer and PDFs
David Faure
faure at kde.org
Mon Sep 22 21:55:47 BST 2008
On Friday 19 September 2008, Jürgen Peter Messerer wrote:
> I'm not quite sure if I'm here in the right mailing list for my problem.
This is the right mailing-list.
> I have the following situation.
>
> My Linux machine mounts a share on an IIS server with davfs.
> Now I'm accessing the share via konqueror.
> This share contains in general many PDF files.
So this is simply using file:/// URLs as far as konqueror knows, right?
> When I capature the network traffic with wireshark then I see, that
> konqueror also send a GET on every PDF.
I assume you mean, when just listing the directory?
> After searching the internet and studying the kdebase source I realize that
> normally konqueror are only sending GET's
> on files with unknown extensions.
Yep (except over protocols where extensions cannot be trusted, like HTTP)
> I have tried the following things:
> - Reregistering the mime type PDF
> - Disabled the file tips
> - Disbaled previews in file tips
> - Disabled all protocols on meta-data
Yep, disabling previews was my obvious first suggestion :)
So obviously that's not it.
Are you sure that Konqueror/kdelibs is the reason for this GET, and not
some issue in the davfs support?
To eliminate (or incriminate) mimetype checking, you will need to recompile kdelibs from
sources after applying the attached patch to kdelibs/kio/kio/kmimemagic.cpp
Then ensure 7018 is enabled in kdebugdialog, and run konqueror again.
If you don't understand the debug output, email it to me.
I can't do this myself, since I don't have any IIS server or davfs mount at hand
(didn't even know davfs existed).
In addition, to know whether it's konqueror or kio_file that is doing this,
you could simply use "strace -eopen konqueror 2>&1 | tee strace.log".
If konqueror isn't the one opening the pdf files, then kio_file is.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmimemagic.cpp.diff
Type: text/x-diff
Size: 792 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20080922/7d8075b4/attachment.diff>
More information about the kfm-devel
mailing list