Commit Graph

450 Commits (3427c207b0dc8eca0ace1dc25633dd6a76e910ab)

Author SHA1 Message Date
Frans de Jonge 475ee28173 Fix KOReader exit
Should reboot less unnecessarily for older versions of KSM, and hopefully this would also be more forward-compatible.
9 years ago
chrox 34ea9ac574 add datastorage module to handle data directory on various platform
On kindle, kobo and pocketbook the data directory is the current
running directory but on Android the app is installed in system
defined location and users may have no access to that location.
The same circumstances should be true for the upcoming Koreader for
Ubuntu touch, so the data directory (in which tessdata, dictionaries,
global settings, persistant defaults and probably history data are
stored) could be stored in another place.
9 years ago
chrox 99af63c545 add koreader app icon for android finally 9 years ago
chrox e9d19965eb fix a bug in android-luajit-launcher that may prevent some devices launching
this should fix #1553 and fix #1551.
9 years ago
NiLuJe 34cb799818 Fix nickel restart with WiFi up.
By killing the WiFi first, since apparently,
nickel really doesn't like that, and causes a deadlock.

re #1503, re #1504, fix #1520
9 years ago
NiLuJe 02fcb9037b Fix startup scripts.
Thanks to @Markismus's questions, I realized that some of what i thought
was true, wasn't.

First, pkill is a terrible idea to check for interpreted scripts.
Second, pidof is also potentially not that great for interpreted
scripts, because it'll only work with a shebang, and one that is
following the Linux syntax.
We don't have the full version with the -x to paper over that,
so use pgrep -f instead.

cf.
a736a571d2 (commitcomment-10948910)
for the gory details.
9 years ago
NiLuJe 8703a043c7 Fix the eips prints on a KT2 9 years ago
NiLuJe 9f89fc8e47 Fix Kobo startup script w/ KSM
pkill probably only checks the actual name of the binary.
We were checking a shell script, which I'm guessing is not launched
via a shebang, so that name was actually an arg to sh, or something like
that.

Use pidof instead, which matches the full command line.
9 years ago
NiLuJe 85445b12f1 Guess what? More comments ^^. 9 years ago
NiLuJe da891ca335 And comment that, because I'm likely to forget. 9 years ago
NiLuJe a99359fa44 Add a comment to explicit the KSM check 9 years ago
NiLuJe 8661194b79 Nice typo bro! 9 years ago
NiLuJe 2d07ec8a9d Handle snapshot tarballs w/ KUAL manual update
It only handled release zips so far.
9 years ago
NiLuJe 7fd45c6cd3 And even more Kobo startup script tweaks.
Good news: restarting nickel doesn't deadlock anymore. Yay.
9 years ago
NiLuJe 218d8b3e54 More comments... 9 years ago
NiLuJe f259ec4259 Wipe dead code 9 years ago
NiLuJe 7db252a27e More Kobo startup scripts tweaks... 9 years ago
NiLuJe d4f80209d9 Minor comment tweak 9 years ago
NiLuJe 476ae3322c sync before killing nickel
Hopefully good enough to avoid trashing the DB
9 years ago
NiLuJe 97ad4afa92 Minor comment tweak 9 years ago
NiLuJe 6c1681b595 Well, go for the lesser evil.
For some unknowable reason, restarting nickel on exit deadlocks on my
H2O, so, do a full reboot instead, at least *that* works.
I'm probably one of the only people running KO manually anyway...
9 years ago
NiLuJe c2bd85bba4 More Kobo scripts tweak...
Trying to figure out why nickel deadlocks on restart...
9 years ago
NiLuJe 1945873682 Tweak the comment a bit 9 years ago
NiLuJe a736a571d2 Same pkill trick as the Kobo scripts
Only here to satisfy my OCD ;p
9 years ago
NiLuJe 6f815e2bdf Minor pass of cleanup of the Kobo scripts.
re #1503
9 years ago
NiLuJe 2fe8dc40d7 Fix eips centering on the KV
For some strange reason, eips relies on the virtual xres on FW 5.x
9 years ago
HW de9f1a281d Merge pull request #1499 from Markismus/master
Update koreader.sh
9 years ago
Markismus 1e9996f475 Update koreader.sh
Compatibility with KSM is resolved. Koreader will now work from any directory it is installed in.

KSM7 tweaks `koreader.sh` line 5 from a hardcoded path to the line used above. I've added the change in line 12 to allow OTA updating.
9 years ago
chrox d345f21c39 Fix sdcv on Android cannot handle morphological changes 9 years ago
chrox 402806d32b Dictionary on Android
Stardict dictionary files should be copied to
/sdcard/koreader/data/dict/ directory.
9 years ago
chrox 68623854fe Add Kindle Voyage support on libkohelper 9 years ago
chrox bb164c1deb Load our own shared libraries if possible
This should fix #1482.
9 years ago
chrox 33614a3a24 Fix #1457 9 years ago
chrox a38d851a15 mcode force allocation on Android is now optional
Anyone who encounters random freeze of koreader for Android
is encouraged to enable this by adding a file at
"/sdcard/koreader/patch.lua" with the content of:
```
require("jit.opt").start("sizemcode=256","maxmcode=256")
for i=1,100 do end  -- Force allocation of one large segment
```
The sizemcode and maxmcode could be adjusted from 196 to 512 to
make koreader best fit on your Android device.
9 years ago
chrox c7d4df806a fix loading shared library on Android
This should fix #1447 and maybe also #1416.
9 years ago
chrox 3cc722e368 fix #1416 9 years ago
Huang Xin b56c01c382 Merge pull request #1423 from Markismus/master
Update networkmgr.lua
9 years ago
Markismus 6e95673d80 Update koreader.sh
Forgot the export PLATFORM
9 years ago
Markismus 40202fbc6b Update koreader.sh
The commands in networkmgr.lua rely on an assigned value of PLATFORM. As discussed in #1423 this is only the case for child processes of rcS. This seems to be a fine place to check the value of PLATFORM.
9 years ago
chrox 327624e4fa fix no match libglib, libssl and libcrypto in some old pocketbook firmware 9 years ago
chrox a40c172c47 fix mupdf rendering caused by FONTDIR env var
It turns out that one of our mupdf patch reads the FONTDIR env var
and uses it in a totally different way so we will use another env var
EXT_FONT_DIR to define external font directory for different platforms.
9 years ago
chrox 077517be0b add FONTDIR env variable
to support custom font directory for EPUB documents

Now Koreader could find fonts in the "fonts" directory in the USB root
directory of kindle, Kobo and PocketBook devices, thus no need to copy
fonts to "koreader/fonts" directory.
9 years ago
chrox 5c4651a3d9 auto launch koreader when opening PDF/DJVU/EPUB/FB2 files in pocketbook 9 years ago
chrox 1cba495fe0 add PocketBook port of Koreader 9 years ago
chrox 2cde181f51 fix koreader not shown in recent app list
when started by view intent.
10 years ago
chrox f2f2833b6a fix #1048 10 years ago
chrox 64b102ebc9 fix #992 by creating fake command line arguments 10 years ago
chrox 46963df0bb don't need to rebuild ota installed package if it's detected 10 years ago
chrox 3554bdd2c4 fix firewall block of calibre companion on Kindle 10 years ago
chrox 2d3c502948 move platform dependent files into 'platform' directory 10 years ago