mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
stardict path override
This commit is contained in:
committed by
Martín Fernández
parent
9a789335c3
commit
f756a6aaa7
@@ -121,6 +121,7 @@ read_globals = {
|
||||
"KOBO_LIGHT_ON_START",
|
||||
"NETWORK_PROXY",
|
||||
"DUSE_TURBO_LIB",
|
||||
"STARDICT_DATA_DIR",
|
||||
"cre",
|
||||
"lfs",
|
||||
"lipc",
|
||||
|
||||
@@ -251,6 +251,10 @@ NETWORK_PROXY = nil
|
||||
-- Use turbo library to handle async HTTP request
|
||||
DUSE_TURBO_LIB = false
|
||||
|
||||
-- Absolute path to stardict files (override)
|
||||
-- By default they're stored in data/dict under dataDir.
|
||||
STARDICT_DATA_DIR = nil
|
||||
|
||||
-- ####################################################################
|
||||
-- following features are not supported right now
|
||||
-- ####################################################################
|
||||
|
||||
@@ -101,7 +101,8 @@ end
|
||||
|
||||
function ReaderDictionary:init()
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
self.data_dir = os.getenv("STARDICT_DATA_DIR") or
|
||||
self.data_dir = STARDICT_DATA_DIR or
|
||||
os.getenv("STARDICT_DATA_DIR") or
|
||||
DataStorage:getDataDir() .. "/data/dict"
|
||||
|
||||
-- Gather info about available dictionaries
|
||||
|
||||
Reference in New Issue
Block a user