Bug 468274 - Okular opens a new instance instead of new tab (Virtual Desktops)
Summary: Okular opens a new instance instead of new tab (Virtual Desktops)
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-08 08:43 UTC by Varaskkar
Modified: 2023-04-08 10:51 UTC (History)
1 user (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 Varaskkar 2023-04-08 08:43:51 UTC
Opening a pdf with Okular, and Okular is in another Virtual Desktop, then it's opened another Okular instance instead of open Okular with a new tab.

It seems this happens because Okular doesn't take virtual Desktops and Activities into account.

As a reference, this bug also happens with Dolphin but has already been fixed (X11):
https://invent.kde.org/system/dolphin/-/merge_requests/529

Original thread (same bug in Dolphin):
https://bugs.kde.org/show_bug.cgi?id=408919
Comment 1 Christophe Marin 2023-04-08 09:36:18 UTC
Don't add random people to the CC list, that's quite rude. They may not be interested in this report.
Comment 2 Varaskkar 2023-04-08 09:40:14 UTC
(In reply to Christophe Marin from comment #1)
> Don't add random people to the CC list, that's quite rude. They may not be
> interested in this report.

Sorry, my mistake, I thought I was right adding the people who were already in the Dolphin related bug.
Comment 3 Nicolas Fella 2023-04-08 10:35:08 UTC
Okular always either opens a new instance or a new tab, depending on your settings, regardless of desktops or activities.

I'm not sure I understand how you want it to behave. Do you want it to open a new tab when it's on the current desktop and open a new instance otherwise?
Comment 4 Varaskkar 2023-04-08 10:40:42 UTC
(In reply to Nicolas Fella from comment #3)
> Okular always either opens a new instance or a new tab, depending on your
> settings, regardless of desktops or activities.
> 
> I'm not sure I understand how you want it to behave. Do you want it to open
> a new tab when it's on the current desktop and open a new instance otherwise?

                                     Apps Running
Virtual Desktop 1:     Dolphin
Virtual Desktop 2:     Okular

Let's say that if I'm in VD1 and it's opened a pdf, shouldn't it be opened in a new tab in Okular, which is in VD2?

Currently, what happens is that a new Okular is opened in VD1
Comment 5 Nicolas Fella 2023-04-08 10:44:20 UTC
Do you have the "Open new files in tabs" option enabled?
Comment 6 Varaskkar 2023-04-08 10:51:19 UTC
Yes, I have that option enabled and it works in the same Virtual Desktop (I just tried it out)

However when Okular is on another virtual desktop it doesn't