Bug 501359 - When opening a new PDF file with Okular while an existing PDF file is being auto-reloaded, the existing file will be replaced
Summary: When opening a new PDF file with Okular while an existing PDF file is being a...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-11 14:42 UTC by Huanyu Liu
Modified: 2025-03-11 14:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A LaTeX source file with intentional error to create a long-standing auto-reload state (112 bytes, text/x-tex)
2025-03-11 14:42 UTC, Huanyu Liu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Huanyu Liu 2025-03-11 14:42:39 UTC
Created attachment 179306 [details]
A LaTeX source file with intentional error to create a long-standing auto-reload state

SUMMARY
If you open a new PDF file with Okular, while an existing PDF file is being auto-reloaded, then the new file will replace the existing one, instead of being opened in a new window.

STEPS TO REPRODUCE
0. Make sure you have a working TeX distribution, download the sample LaTeX source file, and prepare another arbitrary PDF file
1. Compile the source with `pdflatex error.tex`, and you will get an intentional error
2. Press Enter, so the compilation process will go ahead
3. Open the generated "error.pdf" file with Okular
4. Compile the source again; do not press enter this time, so the compilation process will get stuck
5. Now the "error.pdf" file is in an auto-reload state
6. Open the new PDF file with Okular

OBSERVED RESULT
The new file replaces "error.pdf"

EXPECTED RESULT
The new file should be opened in a new window

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.6-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
You can use other techniques to create a long-standing auto-reload state instead of compiling a LaTeX source.