View Single Post
Old 09-23-2014, 01:54 PM   #18
xibalban
Connoisseur
xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.xibalban knows the way to San Jose.
 
xibalban's Avatar
 
Posts: 77
Karma: 54562
Join Date: Aug 2014
Location: Gangtok (Sikkim), India
Device: Kobo Aura HD
Quote:
Originally Posted by Ken Maltby View Post
The "zoom" and "contrast" defaults are probably in one of the .lua scripts, but I don't know which ones, off hand.

The "Default" folder, that the File Manager opens in, can be passed as an argument when calling "reader.lua".

I use the Kobo Start Menu, so Koreader is launched from ".\.kobo\kbmenu\onstart\koreader_kobo.sh". If you start it from Nickel using the png Icon, the koreader_kobo.sh found in the koreader folder would be the one to change.

My koreader_kobo.sh:

#!/bin/sh

export LC_ALL="en_US.UTF-8"

# we're always starting from our working directory
cd /mnt/onboard/.kobo/koreader/


# export trained OCR data directory
export TESSDATA_PREFIX="data"

# export dict directory
export STARDICT_DATA_DIR="data/dict"

# remount external SD as RW
mount -o remount,rw /mnt/sd

# finally call reader
./reader.lua /mnt/sd/.Koreader/Books 2> crash.log

----------------------------

The last line sets /mnt/sd/.Koreader/Books as the folder File Manager will open in.

You may or may not want to set the external SD card to read/write, it could aggravate any issues with Nickel's database. (If you use it try a long press on an item listed in File Manager.)

Luck;
Ken
Thanks Ken. With your assistance, my Aura HD is being customised more and more with each fleeting post of yours. I found the 'lua' file to set those defaults. It is the .kobo/koreader/defaults.lua file.

Is the "remount external SD as RW" required if I set external SD as my default file manager folder? My koreader_kobo.sh misses that entirely. Also, will the file manager crash if it fails to read the SD card?

Excuse me for too many questions
xibalban is offline   Reply With Quote