Skip to content
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

Not reading settings on Kindle #7

Open
aero31aero opened this issue Jan 2, 2024 · 2 comments
Open

Not reading settings on Kindle #7

aero31aero opened this issue Jan 2, 2024 · 2 comments

Comments

@aero31aero
Copy link

aero31aero commented Jan 2, 2024

I made the following changes:

diff --git main.lua main.lua
index 15bee96..45950ed 100644
--- main.lua
+++ main.lua
@@ -101,6 +101,7 @@ function Crossword:lazyInitialization()
       self.settings:readSetting(self.settings_keys.puzzle_dir) or
       ("%s/plugins/crossword.koplugin/nyt_crosswords"):format(
          DataStorage:getFullDataDir())
+   logger.dbg("PUZZLE DIR", self.puzzle_dir, self.settings_keys, self.settings)
 end

crash.log

01/02/24-13:07:36 DEBUG PUZZLE DIR /mnt/us/koreader/plugins/crossword.koplugin/nyt_crosswords {
  puzzle_library_dir = "puzzle_library_dir"
} --[[table: 0x4312eaf8]] {
  data = {
    puzzle_library_dir = "/mnt/us/stuff/crosswords/"
  } --[[table: 0x42c251c8]],
  file = "./settings/crossword_settings.lua"
} --[[table: 0x417fbbb0]]

So, it looks like the lazyInitialization function isn't working as expected.

@roygbyte
Copy link
Owner

roygbyte commented Jan 21, 2024

Weird. Did the custom puzzle directory end up working for you? By custom puzzle directory I mean: the directory outside of the plugin directory, "/mnt/us/stuff/crosswords/"

@aero31aero
Copy link
Author

It didn't, but then I just hardcoded the path in the plugin and that worked. Honestly, I'm also just happy solving puzzles and since it works it works. Thanks for the plugin and ipuz support. <3

I'd just recommend letting the issue open so just in case someone wants to tackle this in the future they have a datapoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants