| Summary: | [Feature request] Printing to PDF - remember last used location | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | Ovidiu-Florin BOGDAN <kde.kfoar> |
| Component: | printing | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | wishlist | CC: | bugseforuns, ikidd3123, m.weghorn, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | All | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Ovidiu-Florin BOGDAN
2019-03-21 07:50:20 UTC
Also it would be useful to remember the last printer used. It always presents the default printer. (In reply to Ovidiu-Florin BOGDAN from comment #0) > OBSERVED RESULT > The proposed location is always the location of the original file. That's not exactly what I get. The suggested path in my case is the working directory + a filename appended (based on the document that is open), which is not necessarily the same location as that of the currently open file. At a quick glance, it looks to me like the current handling is implemented in the Qt print dialog, more precisely the 'QUnixPrintWidget::QUnixPrintWidget' constructor, s. https://code.qt.io/cgit/qt/qtbase.git/tree/src/printsupport/dialogs/qprintdialog_unix.cpp#n1412 . (In reply to Ovidiu-Florin BOGDAN from comment #1) > Also it would be useful to remember the last printer used. It always > presents the default printer. I'm quite sure this is also what the Qt print dialog does, nothing Okular-specific. Kate e.g., which also uses the Qt print dialog, behaves the same way in my case. Calling QPrinter::setOutputFileName should probably make the above code take up the path set this way (though I didn't have any closer look), but I'm unsure whether it makes sense to do this specifically just for Okular (and what else would have to be taken into account). As above, though I would prefer if it just kept the last save location permanently, but I'd be happy with per-session even. The dialog belongs to Qt and unfortunately any changes need to be made there. Feel free to report this at https://bugreports.qt.io. |