Bug 1217464 - Okular opens a new file several times when called from Libre Office export.
Summary: Okular opens a new file several times when called from Libre Office export.
Status: RESOLVED UPSTREAM
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: KDE Applications (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-Mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-23 20:48 UTC by Carlos Robinson
Modified: 2023-11-24 09:18 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Robinson 2023-11-23 20:48:21 UTC
This happens both in Plasma/X11 and XFCE desktops.
Okular is the default application to open PDF files.

Have a file in Writer, and select "export to PDF directly", for instance. Make sure "View PDF after export" is ticked. When the file is written, Okular opens automatically with that PDF file in it.

Now do some edit on Write (or not), and click to export the same file again. LO will warn about overwriting the file. Okular then opens a new window with the "second" file. If you repeat the procedure, you get three okular window, all actually with the same modified file.

If Evince is the default PDF app, it opens a single window and reloads the file, which is the correct and expected behavior.
Comment 1 Fabian Vogt 2023-11-24 09:18:47 UTC
You have to enable the "Open documents in tabs" option to make okular reuse existing windows.

You could file a request upstream to change the default and/or add autodetection if the same file is already open.