Bug 286639

Summary: Open file handle shouldn't be needed
Product: [Applications] okular Reporter: madsmh
Component: generalAssignee: KDE-Windows <kde-windows>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: aacid, okular-devel, ps_ml, wsierz
Priority: NOR    
Version: 0.11.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description madsmh 2011-11-15 00:21:23 UTC
Version:           0.11.2 (using KDE 4.5.4) 
OS:                MS Windows

Okular seems to lock file that is loaded, making it impossible for other programs to write to the file.

Reproducible: Always

Steps to Reproduce:
Open PDF file produced by latexing document.tex. then run latex on the same .tex file again, and latex will complain about not being able to write to the file.

Actual Results:  
the new version of the PDF file was not written and thus not loaded into Okular.

Expected Results:  
The PDF should have been written and the opdated document loaded into Okular.
Comment 1 Albert Astals Cid 2011-11-15 00:25:44 UTC
Windows should be a smarter OS, personally i'm not going to workaround windows limitations myself, obviously i'll review a patch that fixes this issue if anyone fancies like writing it.
Comment 2 Will Sierzputowski 2024-11-12 21:38:11 UTC
Version 24.11.70
OS: Windows 11 23H2

I do not have a Latex suite installed on Windows. But with a PDF file open in Okular I am able to edit the file with another PDF viewer (add comments, and highlight in Firefox), then save the file. The file is saved successfully (although I am prompted about overwriting an existing file). Okular auto reloads the file on the update or doesn't depending on the setting "Reload document on file change". This issue has been resolved either by Okular or Windows since the reporting.