roygbyte / crossword.koplugin

Crosswords on your KOReader device
GNU Affero General Public License v3.0
12 stars 2 forks source link

Not reading settings on Kindle #7

Open aero31aero opened 6 months ago

aero31aero commented 6 months ago

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 commented 5 months ago

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 commented 5 months ago

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.