| Summary: | Feature Request: Command Line option to get the last page of reading when exit. | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | shenlebantongying <shenlebantongying> |
| Component: | general | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | wishlist | CC: | aacid, shenlebantongying |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
shenlebantongying
2021-10-06 12:12:44 UTC
No, this shouldn't be a standalone application. If you already have an existing solution for bibliography management, like Zotero, you don't want to duplicate the functionality. (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. Sorry, but you're asking for something super strange, I see no reason at all why we would add such an option to Okular. |