Bug 114707

Summary: Viewed source tmp file gets deleted immediately
Product: [Applications] konqueror Reporter: Joshua <js>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: maksim
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Joshua 2005-10-19 19:34:04 UTC
Version:            (using KDE KDE 3.4.3)
Installed from:    Gentoo Packages

Almost immediately after I view the source of a web page in kate, I get a message saying that the file was deleted and do I want to save/ignore/cancel.

I am not sure if this is a gentoo issue or kde but something is immediately deleting the file.

The path of the tmp files is something like: file:///tmp/kde-username/konquerorzwu02b.html
Comment 1 Maksim Orlovich 2005-10-19 20:14:21 UTC
OK, what you're seeing is likely  proper consequences of a bug got fixed. Do  you have any files under ~/.kde/share/applications  (or ~/.kde/share/applnk ? )
Comment 2 Joshua 2005-10-19 20:27:41 UTC
I do not have the ~/.kde/share/applications dir but I do have ~/.kde/share/applnk and it contains a few directories, mostly empty except for a few .directory files from my custom kmenu
Comment 3 Joshua 2006-05-27 02:43:21 UTC
Please fix this. It's been here for a year. Still in kde 3.5.2
Comment 4 Joshua 2006-05-27 02:47:53 UTC
I'm not the only one either: http://www.mechanicalcat.net/richard/log/News/Ubuntu_Breezy_time
Comment 5 Joshua 2006-05-27 03:47:55 UTC
This only happens if I try to use an existing kate session, so my file association for text/plain is /usr/kde/3.5/bin/kate -u %U
If I only use /usr/kde/3.5/bin/kate  %U, then it works but now I have multiple kate windows open which is a mess.
Also it seems that it's only some files that do this. Most web pages get saved as /tmp/kde-user/konquerorSOMENUMBER.tmp. If this is the case, it shows that message. I don't think the file ever gets created actually. Some other web pages, mostly local ones from my local server, get saved as kateSOMENUMBER.tmp file and show up in kate with the actual filename (i.e index.php). Not sure what determines this.  
Comment 6 Philip Rodrigues 2006-09-07 15:33:22 UTC
I can reproduce this with 3.5 branch r575787. Steps to reproduce:

1. Set association for text/plain to "kate -u %u" as previously described
2. Go to a webpage. Hit Ctrl+U
3. Wait for kate to appear (with no problems)
4. Go back to konq and hit Ctrl+U again
5. The source is opened again in kate, and this time generates the error described.

The only thing I can see in the debug output that seems relevant is:
kio (Slave): slave failed to connect to application pid=2358 protocol=file
kio (Slave): slave is slow... pid=2358 t=4
kio (Slave): slave failed to connect to application pid=2358 protocol=file
kio (Slave): slave is slow... pid=2358 t=6
kio_file: Starting 2358

although this appears *before* the second kate instance is started. Full debug log is available if anyone wants it
Comment 7 Philip Rodrigues 2006-12-12 00:10:43 UTC
Pretty sure this is the same cause as 130709. I'll mark as a dupe of the newer bug since the newer bug has a fairly complete analysis

*** This bug has been marked as a duplicate of 130709 ***