View Single Post
Old 11-27-2019, 09:14 AM   #2
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
Lua files are stored on application private data path under
Code:
/data/data
or
Code:
/data/user/x
and thus not easily modificable. To solve that we keep a bit of info on the shared storage under the folder koreader. That allows us to keep settings and other data even when the app is uninstalled.

In short: create a new file called
Code:
defaults.persistent.lua
inside the koreader folder and copy there the things you want to overwrite. You can use https://github.com/koreader/koreader...r/defaults.lua as a template.
pazos is offline   Reply With Quote