[Okular-devel] [okular] [Bug 319625] Bookmarks & annotations lost for renamed documents

Alan Aversa aversa at email.arizona.edu
Fri May 17 19:13:29 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=319625

--- Comment #15 from Alan Aversa <aversa at email.arizona.edu> ---
(In reply to comment #14)
> By "it" i mean, i have
>    docdata/123861.np658.pdf.xml
> that represents a file that was named np658.pdf and was 123861 bytes in
> size. When should i decide to read this file, go inside it and read
>    <documentInfo url="/tmp/np658.pdf">
> and then check if /tmp/np658.pdf stil exists?
> 
> Every time you start okular?

Suppose you try opening /tmp/np658.pdf in Okular, but /tmp/np658.pdf DOESN'T
exist. Then Okular will say the file cannot be found. At that point Okular
should prompt for the new, existing path and/or filename—say,
/new/path/of/doc/newname.pdf. Then Okular would rename
docdata/123861.np658.pdf.xml to docdata/123861.newname.pdf.xml if the filename
changed and update docdata/123861.newname.pdf.xml and documentInfo with the new
path, /new/path/of/doc/newname.pdf.

Okular needn't do any automatic checking of whether /tmp/np658.pdf exists.

Now, suppose /tmp/np658.pdf DOES exist, and that its previous path and/or
filename was different—say, /old/path/of/doc/oldname.pdf. Okular needn't search
for docdata/123861.oldname.pdf.xml and the entry in bookmarks.xml and update
them to /tmp/np658.pdf, unless you want to implement this, too; but I don't
think that'd be necessary.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list