[okular] [Bug 443390] Feature Request: Command Line option to get the last page of reading when exit.
David Hurka
bugzilla_noreply at kde.org
Wed Oct 6 20:01:16 BST 2021
https://bugs.kde.org/show_bug.cgi?id=443390
--- Comment #2 from David Hurka <david.hurka at mailbox.org> ---
(In reply to shenlebantongying from comment #0)
> Okular can remember the lasted opened position (i think?),
Yes, not only the last position. Okular stores the viewport history in XML
files, usually under ~/.local/share/okular/docdata/. It should be possible to
parse these, although not very convenient.
> Scripting a GUI application!
>
> I might be the only want this :/
No, this is one use case for D-Bus. You can try the application d-feet to look
which D-Bus methods are available in Okular. For example, you can query the
currentPage() method. Of course, you need to query it before Okular is closed.
> Does Okualr can be used as a KPart?
Yes, the okularpart component, which is used by the “Okular” desktop
application, is actually a KPart in a shared library. It provides the same
currentPage() method.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list