Bug 434595

Summary: Okular: documents always open in new window
Product: [KDE Neon] neon Reporter: Julian <barg.julian>
Component: SnapsAssignee: Scarlett Moore <sgmoore>
Status: RESOLVED FIXED    
Severity: normal CC: luigi.toscano, neon-bugs, sgmoore
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Julian 2021-03-18 18:12:28 UTC
SUMMARY
Thanks for finally rolling out the latest version of Okular to ubuntu/snap. Unfortunately, right now the options "Open new files in tabs" and "Switch to existing tab if file is already open" are disregarded. When launching Okular from the console, the following error message is printed:
```Qt: Session management error: Could not open network socket```
and
```qt.xkb.compose: failed to create compose table```

The --unique flag does not change the result.

STEPS TO REPRODUCE
1. sudo snap install okular
2. okular file.pdf
3. okular otherfile.pdf
4. okular file.pdf

OBSERVED RESULT
Three Okular windows with file.pdf open twice

EXPECTED RESULT
One Okular window with two tabs

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.04
(available in About System)
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Before the recent update, tabs used to work (but the "Switch to existing tab if file is already open" option did not exist).
Comment 1 Julian 2021-03-18 18:40:29 UTC
I just installed lastest/edge via ```snap install okular --edge``` where everything works as expected.
Comment 2 Scarlett Moore 2023-04-06 18:07:32 UTC
Please update to latest snap in store 22.12.3