Summary: | Can't open okular document archive saved from a directory of images | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | dirtyice <kdebugs> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacid, kdebugs, nate |
Priority: | NOR | ||
Version First Reported In: | 21.12.2 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/okular/commit/0197a78fb565b6ce6d19a81d7debafd667c26ca3 | Version Fixed In: | |
Sentry Crash Report: |
Description
dirtyice
2022-02-10 22:22:06 UTC
> EXPECTED RESULT
> It should open the .okular file, hopefully without packing the hundreds of megabytes of images into it.
I mean, you asked it to do that, so I'm not sure why you're suddently surprised that the application did what you said.
Anyhow, you defenitely triggered an unexpected path, sadly folders of images is not something the code accounts for, my suggestion is that one shouldn't be able to annotate when opening folders of images, just when opening individual files.
(In reply to Albert Astals Cid from comment #1) > I mean, you asked it to do that, so I'm not sure why you're suddently > surprised that the application did what you said. Hmm, what do you mean? We have two things going on. First I wanted to quit, and save the changes before I quit. Not necessarily a bug, it's just a bit weird that okular asks to reload the document, when it's going to quit right after it. But my main problem is that I can't load the document it saved at all. I didn't ask okular to create an unopenable file. > Anyhow, you defenitely triggered an unexpected path, sadly folders of images > is not something the code accounts for, my suggestion is that one shouldn't > be able to annotate when opening folders of images, just when opening > individual files. Couldn't it be made to work somehow? I mean, back when okular automatically saved annotations in a separate file into ~/.local/share/okular/docdata, this worked IIRC. Oh yes, sorry, now that I re-read my original bugreport, I noticed that the wall of text is under observed result and the expected result comes logically after steps to reproduce, it's only physically after observed result, but that's not what I exactly had on mind when written the report. So TL;DR, my problem is that it can't load the file it created, everything else is additional information. A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/563 Git commit 0197a78fb565b6ce6d19a81d7debafd667c26ca3 by Albert Astals Cid. Committed on 22/02/2022 at 13:20. Pushed by aacid into branch 'master'. Part::queryClose: Don't ask the user if he wants to save file types we can't save M +29 -8 part/part.cpp M +3 -0 part/part.h https://invent.kde.org/graphics/okular/commit/0197a78fb565b6ce6d19a81d7debafd667c26ca3 |