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: 23.03.80
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: 2024-10-26 08:50 UTC (History)
14 users (show)

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


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
Comment 8 Jean Carlos Fernandes 2024-09-25 20:03:00 UTC
I still have same issue, hopes they fix it soon.
Comment 9 Christoph Cullmann 2024-09-25 20:42:29 UTC
One needs to implement that feature for Windows, so far I don't think somebody is working on that.
Comment 10 nonobio 2024-10-26 08:50:37 UTC
Hi,

I’ve been using Okular for a few weeks. I like the application, but I also noticed this annoying bug.

Thanks for the app by the way :)