View Single Post
Old 02-16-2015, 05:25 PM   #32
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by gong View Post
Ah I'm reassured, thanks!

Also, is the method described here outdated or still the way to go in order to make an alternative setting for koreader?
Some locations have changed in koreader, I think it should now go like this:

Spoiler:
Step 1
copy readerpaging.lua to readerpaging2.lua; make the appropriate changes in readerpaging2.lua

Step 2
copy koreader\frontend\apps\reader\readerui.lua to koreader\frontend\apps\reader\readerui2.lua

Replace in readerui2.lua
Code:
local ReaderPaging = require("apps/reader/modules/readerpaging")
with
Code:
local ReaderPaging = require("apps/reader/modules/readerpaging2")
Step 3
copy koreader\reader.lua to koreader\reader2.lua
Replace in reader2.lua
Code:
local ReaderUI = require("apps/reader/readerui")
with
Code:
local ReaderUI = require("apps/reader/readerui2")
This line occurs twice in the file, replace both occurrences.

Step 4
copy koreader\koreader.sh to kbmenu\scripts\koreader2.sh
replace in koreader2.sh
Code:
./reader.lua $args 2> crash.log
with
Code:
./reader2.lua $args 2> crash.log
If your koreader folder is in .kobo, then you are finished here. If however you moved the folder to .adds (cf. this post), then you have to replace the line
Code:
KOREADER_DIR=/mnt/onboard/.kobo/koreader
with
Code:
KOREADER_DIR=/mnt/onboard/.adds/koreader


By the way, there would be an easier method, but it needs more space on the disk. You can duplicate your koreader folder and name it (for instance) koreader-2. Then and make your changes to readerpaging.lua of koreader-2. You can call tkoreader-2 via "koreader additions" > "select koreader versions" > koreader-2". Be aware that the settings and the history lists of these two koreaders are separate. Whether this is useful depends on your needs.



Quote:
Originally Posted by gong View Post
And where do one set the opening path for koreader?
Maybe replace in koreader.sh of koreader and koreader-2
Code:
./reader.lua $args 2> crash.log
by
Code:
./reader.lua /mnt/onboard/.mybooks 2> crash.log
or similar.

Last edited by tshering; 02-16-2015 at 06:00 PM.
tshering is offline   Reply With Quote