-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux version does not save font sizes and margins #4826
Comments
thanks! that is, in fact, a prerrequisite that I forgot to add to the debian package.
I can't reproduce that. I think you are closing the window using the close button. |
@pazos But so am I. |
Why is libsdl2-dev a prerequisite? That sounds like a bug, not like something to be added to the list of dependencies. |
it seems that libsdl2-2.0-0 is not linked to libSDL2.so unless libsdl2-dev is installed Without it I get: |
OK, I can reproduce using the exit button in the menus, too. What's the best way to debug this for you? |
Alright, so the bug is that the program only looks for libSDL2.so. Please don't work around it in the Debian control file. :-) |
You can get debug messages on your console running |
Please see the attached. Search through each for "margins" and you'll see they default to 70 at startup, then I change them to larger later. Hope this helps debug! BTW, I also noticed that passwords are logged when using OPDS. Might want to consider masking those, especially if those are getting dumped to |
It says @poire-z could that be responsible? |
Nope, that's the consequence: the cache was saved with book rendered with the user-set margins. On next load, the margins applied are no more the user-set ones, so saved style hash (with user-set margins) is different from current one (with default margins), so mismatch, so full rendering. |
Between the 2 runs, you should look at the content of /home/fmstrat/Books/Cory Doctorow - Walkaway.sdr/metadata.epub.lua : which margins are saved in it. Also, there are tons of
So, I don't know, is this directory writable with enough freespace? |
Those are (presumably) some noise that needs fixing, i.e., differentiate between "invalid" and "doesn't exist". |
Fixes <koreader/koreader#4826 (comment)>. A bit like the idea penned down [here](koreader/koreader#3108 (comment)).
Fixes <koreader/koreader#4826 (comment)>. A bit like the idea penned down [here](koreader/koreader#3108 (comment)).
…873) Fixes <koreader/koreader#4826 (comment)>. A bit like the idea penned down [here](koreader/koreader#3108 (comment)).
@Frenzie I don't believe this should be closed. The SDL issue has been fixed but I haven't had a chance to check the cached margin issue. |
I didn't, GH did. Apparently it thinks fixes comment means fixes issue too. |
See koreader#4826 (comment) Also some Makefile/CMake sanity/cleanup/style/refactoring. Includes: * [build] Move Android ZLIB_LDFLAGS to thirdparty/zlib koreader/koreader-base#870 * [chore] Update CMake to modern style with lowercase commands koreader/koreader-base#872 * [fix] Add util.ffiLoadCandidates to try multiple SDL2 library names koreader/koreader-base#873 * [fix] Return fail status for SDL koreader/koreader-base#874 * [chore] Makefile: declare all phonies koreader/koreader-base#875 * [chore] Remove luajit-clean target koreader/koreader-base#876 * [chore] CMake kpvcrlib convert remaining tabs to four spaces koreader/koreader-base#877
See #4826 (comment) Also some Makefile/CMake sanity/cleanup/style/refactoring. Includes: * [build] Move Android ZLIB_LDFLAGS to thirdparty/zlib koreader/koreader-base#870 * [chore] Update CMake to modern style with lowercase commands koreader/koreader-base#872 * [fix] Add util.ffiLoadCandidates to try multiple SDL2 library names koreader/koreader-base#873 * [fix] Return fail status for SDL koreader/koreader-base#874 * [chore] Makefile: declare all phonies koreader/koreader-base#875 * [chore] Remove luajit-clean target koreader/koreader-base#876 * [chore] CMake kpvcrlib convert remaining tabs to four spaces koreader/koreader-base#877
@Fmstrat: could you still reproduce on latest stable? |
See koreader#4826 (comment) Also some Makefile/CMake sanity/cleanup/style/refactoring. Includes: * [build] Move Android ZLIB_LDFLAGS to thirdparty/zlib koreader/koreader-base#870 * [chore] Update CMake to modern style with lowercase commands koreader/koreader-base#872 * [fix] Add util.ffiLoadCandidates to try multiple SDL2 library names koreader/koreader-base#873 * [fix] Return fail status for SDL koreader/koreader-base#874 * [chore] Makefile: declare all phonies koreader/koreader-base#875 * [chore] Remove luajit-clean target koreader/koreader-base#876 * [chore] CMake kpvcrlib convert remaining tabs to four spaces koreader/koreader-base#877
Issue
When using the bottom menu to set font sizes and margin, the settings are not saved. Restarting the reader resets those settings. The settings show up in the menu where I left them, but the fonts and margins are at their original default.
Steps to reproduce
In Ubuntu 18.04
The text was updated successfully, but these errors were encountered: