Bug 442891 - When tabs are enabled, opening a document from a file manager in one activity opens the document in a tab on the other activity's Okular, irrespective of whether it is open on the current activity
Summary: When tabs are enabled, opening a document from a file manager in one activity...
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-24 11:31 UTC by strangequark
Modified: 2022-05-29 12:10 UTC (History)
2 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 strangequark 2021-09-24 11:31:06 UTC
SUMMARY
Pretty much the summary above

STEPS TO REPRODUCE
1. Enable tabs in Okular
2. Open a document (or several) in any one activity, they should all open as tabs on the same window
3. Go to a different activity and open a new Okular without any document open.
4. Open a document using Dolphin on the activity where you opened the blank Okular window. 

OBSERVED RESULT
The document opens up in the Okular window on the other activity (the one you opened Okular first in)

EXPECTED RESULT
The document should open in the current activity, whether or not Okular is already running on the activity where the document was launched 

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-36-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
none
Comment 1 strangequark 2021-09-27 05:11:10 UTC
Huh, this seems to not happen all the time. Just did the same thing again, and it worked fine (the document opened in the correct activity)
Comment 2 strangequark 2021-09-27 05:19:53 UTC
And now the bug is back.
Comment 3 electw 2021-11-04 19:24:32 UTC
Still occurs in Neon, Plasma 5.23.2, Okular 21.08.2.

I would like to add that even if there is an Okular window open on two activities, any new file opened will open in the Okular window most recently opened, regardless of which activity the file was opened from. 
For example, let's say I opened an Okular window first in Activity 1 and then one in Activity 2. I go back to Activity 1 and try to open a document. This document will open in Activity 2, because that was where the most recent Okular window was opened.
Expected result is to have that file open in Activity 1, regardless of which Okular window was most recently opened.

Funny thing is that this problem does not exist with separate virtual desktops, despite virtual desktops, to my understanding, being less "separate" than activities in Plasma.
Comment 4 Gaël de Chalendar (aka Kleag) 2021-11-22 16:25:58 UTC
Well, it seems that there is no support of activities in okular at all, so it works with the default wm behavior. Now that I seriously switched to using activities in my work, I'd like to see this feature implemented.