Bug 502482 - D-Bus Methods in Okular Do Not Work Correctly for Specific Tabs
Summary: D-Bus Methods in Okular Do Not Work Correctly for Specific Tabs
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-06 11:46 UTC by matthiasschmitz1993
Modified: 2025-04-06 11:46 UTC (History)
0 users

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 matthiasschmitz1993 2025-04-06 11:46:20 UTC
SUMMARY
When multiple pdfs are open in different tabs within the same Okular instance, D-Bus methods like currentPage, currentDocument, and goToPage do not behave as expected. 

STEPS TO REPRODUCE
1. In Okluar go to "Settings" -> "Configure Okular..." -> "General" -> activate "Open new files in tabs"
2. Open multiple pdfs in tabs of the same Okular instance
3.  Run "qdbus org.kde.okular-{PROCESS ID} /okular org.kde.okular.currentPage"

OBSERVED RESULT
The method (currentPage) always returns a result for the initially opened document and not the currently activate tab. The same issue occurs with other methods (e.g., currentDocument, slotPreviousPage, slotNextPage, etc...).

If the tab of the initially opened document is closed, but the okular instance is still open with another document, then qdbus returns an error.

EXPECTED RESULT
I would expect the methods to work for the currently active tab by default. I would also expect an option to use the methods on multiple different tabs, even when not active.

SOFTWARE/OS VERSIONS
Linux: Ubuntu 24.10
okular: 24.05.2
Qt Version: 5.15.15