Bug 421758

Summary: okular restarts and can't find files
Product: [Applications] okular Reporter: davidblunkett <dav1dblunk3tt>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: yurchor
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description davidblunkett 2020-05-19 08:19:09 UTC
When okular restarts if it can't find a file it throws a message box and spawns an empty pane.  The latter is a PITA.

Just rebooted after a system update and now I've got 20 or so unwanted okulars I need to kill off because of temp files I had open.

Prblem is I'm impateitn and I'll just pkill okular rather than sort through the empty panes closing them one-by-one and that means I end up killing off non-empty ones.

Basically why open a non-existent file?
Comment 1 Yuri Chornoivan 2020-05-19 08:38:32 UTC
Basically, because it's a session management feature. The system restarts every single application that was running in the previous session. It is hard to predict what was removed meanwhile.

You can try to switch off some Okular messages with the "Show hints and info messages" option.

https://docs.kde.org/trunk5/en/kdegraphics/okular/configgeneral.html

Just my 2 cents.
Comment 2 davidblunkett 2020-05-21 14:05:20 UTC
I understand where it's coming from but my point is an error message and a blank pane double what is required! I could understand why the first instance opens a blank pane but the rest? clutter with no purpose.