Bug 195207

Summary: session restore should reopen pdf web addresses
Product: [Applications] okular Reporter: andrew <andrew.dorrell>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: andrew.dorrell, mathieu.lornac
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description andrew 2009-06-04 15:02:18 UTC
Version:           0.8.80 (using Devel)
OS:                Linux
Installed from:    Compiled sources

Use case: I have a bunch of PDF files open that I have openned directly from internet links. For some reason (eg upgrade) I need to log out. In kde3, logging back in would magically restore all the previously open PDF files - because kpdf was launched with the URL of the file. 
 
 In KDE4 I have noticed that okular gets launched with the name of the temporary file that was downloaded. This typicall fails to re-open because it was cleaned up. So I have to go and find all those documents again.
 
see also http://forum.kde.org/session-restore-should-reopen-pdf-web-addresses-t-61616.html
Comment 1 Pino Toscano 2009-06-04 15:10:37 UTC
(In reply to comment #0)
> In KDE4 I have noticed that okular gets launched with the name of the
> temporary file that was downloaded.

How are you launching Okular? From konqueror, firefox, other browser or manually?
Comment 2 andrew 2009-06-05 00:47:26 UTC
Launched from browser.  I have been using both firefox and konqeror.  Not manually.
Comment 3 Mathieu Lornac 2010-08-08 17:43:35 UTC
Works fine with konqueror.

I open a document from the Konqueror browser, logout clean my tmp folder and when i log back in the file is downloaded and opened properly.

I don't know if fixing that issue for firefox is possible, because the file url is not given to the main function. The main function only has the local file downloaded by the download manager of firefox. After a logout the file is wiped out but we don't have the url to download it again.
Comment 4 Albert Astals Cid 2010-08-09 23:55:28 UTC
Following Mathieu's comment i'm closing the bug since it works in Konqueror and we can not fix Firefox to give us a url we can reuse after session restart.

If it fails for you when using Konqueror please reopen the bug.

Thanks for using KDE.