Bug 308683 - Okular does not remember display preferences for documents on refresh or reopen
Summary: Okular does not remember display preferences for documents on refresh or reopen
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 22:37 UTC by reescf
Modified: 2013-08-15 22:44 UTC (History)
1 user (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 reescf 2012-10-19 22:37:12 UTC
I was told to open this as a new bug rather than "hijacking" one which appears (as far as I can tell) to be the same issue. However, I assume from this that it has been determined that it is not the same issue despite all appearances to the contrary from a position of ignorance. Hence this report.

The original poster's bug report said:

"I use Okular for various kind of documents, which different... display options I set manually for each of them, what's really boring. I'd like Okular to provide an option that remembers these parameters for each document, as Dolphin remembers display options for each folder."

I don't know if this is what is meant by "display" but if you use Okular with Kile to produce slides (e.g. using the beamer latex package), every single time the pdf is updated, Okular requires you to once again say whether you want to allow full screen mode or not. I would not even mind if I had to tell it once per editing session but every time I regenerate the pdf? (And when I'm adjusting something visual such as a presentation, this happens quite frequently.) If I generate the pdf X times without answering Okular's query, it makes me answer the question X times before showing the pdf. If the relevant tab in Okular is not active, the entire application disappears and I have to get it back using alt-tab before answering the question and finally seeing the pdf.

To me, this is the same issue: Okular does not remember display preferences for documents so when the document is opened again (e.g. refreshed as triggered by a typesetting run in Kile), Okular requires you to reconfigure your settings for the document. [Note that acroread, for example, allows you to check a box to remember preferences for that particular document. Too bad I don't want acroread to remember them!)

I've included the original report here because it captures the issue as well as anything I can say. As far as I could see, I just added details of a particular instance in which lack of the feature is particularly annoying. I didn't think I was requesting anything different. So I'm a bit stuck on how to report this, to be honest, because I still don't see (despite the "hijacking" comment) how to differentiate the issues.

Hopefully somebody else can. I'm happy to provide info on request.

Reproducible: Always

Steps to Reproduce:
1. Open a PDF
2. Set display options e.g. tell Okular not to use full-screen mode when asked
3. Refresh/re-open the same document e.g. regenerate PDF from TeX source if Okular is configured to update automatically
4. Notice that you have to reconfigure the display options you set in step 2
5. Repeat as desired
Actual Results:  
See 4 above.

Expected Results:  
Only steps 1-3 should be necessary.

I took this to be a duplicate or specific instance of bug 200183 ("Remember display for each document") but have been told that it is definitely not and that posting the report there constitutes "hijacking" the bug.

I didn't look for further duplicates. I figured if that one wasn't it, I would have no idea that I'd found a duplicate if I did come across one.
Comment 1 Albert Astals Cid 2012-10-21 20:48:03 UTC
"Set display options"

what are "display options"?
Comment 2 reescf 2012-11-02 01:19:03 UTC
I took "display options" for a given document to at least include the choice to display the document full-screen (as requested by the PDF) or not. That's why I thought I was seeing the bug reported in the other thread.

But maybe "display options" was supposed to mean something else.

Does it really matter? I specified precisely the behaviour that I was concerned about. If that isn't "display options", OK. Tell me what you would like me to call respect-request-full-screen vs. ignore-requested-full-screen preference for a document.
Comment 3 Albert Astals Cid 2012-11-02 20:50:43 UTC
To be honest, yes it matters, because you copied and pasted soemthing and then added some other stuff and at the end you use something as vague as "display options".

And that means i have no clue of exactly what you are complaining about. And then in your comment #2 you say "the choice to display the document full-screen (as requested by the PDF) or not", but the documents never request for full-screen, they request for presentation mode, that is a different thing than full-screen.

So can you try to be a bit more precise in what you exactly want so we can try to make you happier?
Comment 4 reescf 2013-08-05 00:42:24 UTC
Sorry about the delay.

Ideally, I would like:
1) a command line switch --nopresentation which would ignore document requests to use presentation mode rather than triggering a dialogue asking me what I want to do. This way, I could just add this switch into kile's configuration.
2) okular not to ask me again what I want to do when the document changes on disk. So if I've once said "no presentation mode", it will just not ask again for that document at least during that session.

Alternatively one of the following:
1) the ability to disable the use of presentation mode except when explicitly requested;
2) when a document requesting presentation mode is first opened, an option to check "do not ask again for this document" which will then ignore such requests from that document and only use presentation mode if I specifically choose to override my earlier choice (using the menu, say).

I just want not to have to answer the same question about the same document over and over and over again. If you generate beamer slides in kile and view them in okular, the document changes frequently and I never want to view in presentation mode while trying to edit the thing in kile!
Comment 5 reescf 2013-08-05 00:48:22 UTC
Also sorry if the "full screen" was confusing. Hyperref using "FullScreen" to request essentially presentation mode in Acrobat and beamer uses it for this as well.
Comment 6 Albert Astals Cid 2013-08-05 17:27:04 UTC
--nopresentation is a sensible request, much more than the vague description from the initial description. Would you agree to discard this bug and create a cleaner one about --nopresentation?
Comment 7 reescf 2013-08-11 21:08:34 UTC
Is https://bugs.kde.org/show_bug.cgi?id=323393 OK? Please let me know if anything there is unclear. The terminology is rather difficult because I don't typically know what things are called and they are difficult to describe. (Well, so I find it.) This is worse for me in this case because hyperref, beamer and Adobe Reader use terms in different ways from Okular (and sometimes differently from each other as well). Also, the problem has been exacerbated by my moving to Linux, I think. So I apologise again for not being clearer.
Comment 8 Albert Astals Cid 2013-08-12 21:49:22 UTC
Yes, that is much better. Can we mark this bug as discarded?
Comment 9 reescf 2013-08-15 22:32:38 UTC
Yes. As far as I am concerned, this bug has been wholly superseded. Thanks for help clarifying my request.
Comment 10 Albert Astals Cid 2013-08-15 22:44:24 UTC
Fixed is not what really happened, but couldn't find something better, so let's go with fixed.