KDE 3.5.7 and Beagle: file being deleted immediately after opening in kpdf

Frederik Himpe fhimpe at telenet.be
Sat Aug 25 16:33:23 BST 2007


On Fri, 24 Aug 2007 11:01:15 +0000, Frederik Himpe wrote:

> When Kerry (Beagle) is active on a system and trying to open an embedded
> PDF file in Konqueror (either downloaded, either a local file), there is
> often the problem that Konqueror deletes the pdf file in ~/tmp
> immediately after kpdf was started. This only happens when Beagle is
> active.
> 
> See also this bug report: http://qa.mandriva.com/show_bug.cgi?id=25543
> where there's an audit report where it was determined that it's
> Konqueror which unlinks the file.

A Beagle developer analysed the problem a bit more in the above ticket and 
we have some more details. When Beagle indexes the downloaded pdf file, it 
writes some extended attributes to the file. Because KPDF watches the file 
with KDirWatch, this triggers kpdf's slotFileDirty() in kdegraphics/kpdf/
part.cpp and makes it reload the file.

And apparently then it goes wrong, because the pdf file is deleted by 
Konqueror. I guess Konqueror thinks that kpdf does not need it anymore?

It would be great if somebody could take a look at this annoying bug.

-- 
Frederik Himpe






More information about the kfm-devel mailing list