Bug 427953 - Unique instance and open in tabs ignored
Summary: Unique instance and open in tabs ignored
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 428568 439548 457520 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-19 05:49 UTC by okbug
Modified: 2023-10-18 17:47 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description okbug 2020-10-19 05:49:00 UTC
SUMMARY


STEPS TO REPRODUCE
1. Set "Open new files in tabs" in Settings
2. Add a registry "Parameter" key in [HKEY_CLASSES_ROOT\AppXhptkdxysnj90q56w5z3sx7d7a55gse06\Shell\open] with value '--unique "%1"'

OBSERVED RESULT

Each new file gets opened in a new window (with a new process).
Passing the --unique argument show a dialog every time saying something like 'Another unique instance is running, this won't be the unique instance...' although there are no Okular processes running on the system.


EXPECTED RESULT

Open all (PDF) files in tabs of a single program instance.

SOFTWARE/OS VERSIONS
Windows: 10 build 2004
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2020-11-01 18:36:32 UTC
*** Bug 428568 has been marked as a duplicate of this bug. ***
Comment 2 gheoan 2020-11-02 20:07:33 UTC
This can also be reproduced by running okular --unique from the command line, without any registry edit.
Comment 3 Albert Astals Cid 2021-07-06 22:38:47 UTC
*** Bug 439548 has been marked as a duplicate of this bug. ***
Comment 4 Hannah von Reth 2021-07-07 11:14:36 UTC
I don't think we ship dbus, so thats probably the cause.
Comment 5 Christoph Cullmann 2021-07-07 18:18:26 UTC
Yes, there is no working dbus there.
Kate uses QtSingleApplication for that on Windows, but that is hacky, too.
I could try to improve the error message by checking better if some dbus session bus is around at all.
Comment 6 Albert Astals Cid 2022-08-05 13:43:55 UTC
*** Bug 457520 has been marked as a duplicate of this bug. ***
Comment 7 kewcomet 2023-03-02 00:15:24 UTC
Having the same issue.
Have enabled: "Open new files in tabs" but the setting is being ignored