Bug 95235 - KMail can't open HTML file in konqueror because it erases file when kfmclient exits
Summary: KMail can't open HTML file in konqueror because it erases file when kfmclient...
Status: RESOLVED DUPLICATE of bug 91410
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-16 02:13 UTC by Mikhail Ramendik
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Ramendik 2004-12-16 02:13:41 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs
OS:                Linux

I use KDE 3.3.1 from kde-redhat.org on RH9. I use Konqueror as the browser, and kmal as the mail reader.

And kmail can not open HTML files in Konqueror. Konqueror says "File not  found: /tmp/kde-[my user name]/somefilename.html_something . I check the  directory, and the file is not there! But if I ls the directory immediately after clicking on the file, I can see the file there.

The probable reason: KDE calls kfmclient, not konqueror, to open an html file by default. kfmclient returns at once, and kmail dutifully erases the temp file.

This happens, ate least, when looking at an attachment on the Sent folder, but I think it will hapen in any other folder as well.
Comment 1 Thiago Macieira 2004-12-16 02:59:56 UTC
I cannot reproduce this in HEAD 20041209.

I have preloaded Konqueror windows and it opens the file.

However, this *IS* a race condition, because I reload the file in Konqueror: the file will have been erased already.
Comment 2 David Faure 2004-12-16 11:07:31 UTC
This is #91410. It's fixed in HEAD by the addition of the --tempfile command line option, which moves the responsibility of deleting the tempfile to the external application.

Thiago: there is no race condition anymore. Konqueror reliably deletes the file after having loaded it. Why should reload work? :/

*** This bug has been marked as a duplicate of 91410 ***
Comment 3 Thiago Macieira 2004-12-16 11:35:13 UTC
Konqueror shouldn't delete it after loading, but it maybe should delete after moving away from it.

For instance, one may want to see the source code. But that's a different problem now.