mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #4 from hwhw/hwhw-master
Adapt wrapper script and launcher files to new naming
This commit is contained in:
22
extensions/koreader/README.txt
Normal file
22
extensions/koreader/README.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
TITLE: koreader
|
||||
|
||||
CONTAINS: KUAL files for installation in /mnt/us/extensions/
|
||||
|
||||
REF: Main KUAL thread http://www.mobileread.com/forums/showthread.php?t=203326
|
||||
|
||||
UPSTREAM SOURCE: https://github.com/hwhw/koreader
|
||||
|
||||
SUPPORTS:
|
||||
DX No
|
||||
K3 No
|
||||
K4 No
|
||||
Touch Yes
|
||||
PW Yes
|
||||
|
||||
REQUIRES: koreader
|
||||
|
||||
ARCHIVAL LINK:
|
||||
|
||||
ORIGINAL AUTHOR: koreader development team
|
||||
|
||||
NOTES: this is the successor of KindlePDFviewer for devices with touch input support. Support for keyboard input is to be done, use the legacy KindlePDFviewer or Librerator for this. Report issues and bugs on github.
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<extension>
|
||||
<information>
|
||||
<name>KPDF</name>
|
||||
<name>Koreader</name>
|
||||
<version>0.0</version>
|
||||
<author>Hawhill</author>
|
||||
<author>Koreader dev team</author>
|
||||
<id>helper</id>
|
||||
</information>
|
||||
<menus>
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"name": "KPDF",
|
||||
"name": "Koreader",
|
||||
"priority": 0,
|
||||
"items": [
|
||||
{"name": "Start in documents", "priority": 1, "action": "/mnt/us/kindlepdfviewer/kpdf.sh", "params": "/mnt/us/documents"},
|
||||
{"name": "Open last document", "priority": 2, "action": "/mnt/us/kindlepdfviewer/kpdf.sh"}
|
||||
{"name": "Start in documents", "priority": 1, "action": "/mnt/us/koreader/koreader.sh", "params": "/mnt/us/documents"},
|
||||
{"name": "Open last document", "priority": 2, "action": "/mnt/us/koreader/koreader.sh"}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -1,23 +0,0 @@
|
||||
TITLE: kindlepdfviewer
|
||||
|
||||
CONTAINS: KUAL files for installation in /mnt/us/extensions/
|
||||
|
||||
REF: Main KUAL thread http://www.mobileread.com/forums/showthread.php?t=203326
|
||||
|
||||
UPSTREAM SOURCE: https://github.com/hwhw/kindlepdfviewer
|
||||
|
||||
SUPPORTS:
|
||||
DX Yes ( All Revisions )
|
||||
K3 Yes ( All Revisions )
|
||||
K4 Yes ( All Revisions )
|
||||
Touch (check github and threads for support information)
|
||||
PW (check github and threads for support information)
|
||||
|
||||
REQUIRES: KindlePDFviewer http://www.mobileread.com/forums/showthread.php?t=157047
|
||||
|
||||
ARCHIVAL LINK: http://www.mobileread.com/forums/showpost.php?p=2406316&postcount=5
|
||||
|
||||
ORIGINAL AUTHOR: Hawhill, See GIT for subsequent contributors listing
|
||||
|
||||
NOTES: Touchscreen support for the Touch and PW is in progress
|
||||
check github and threads for support information
|
||||
@@ -7,11 +7,11 @@ test -e $PROC_KEYPAD && echo unlock > $PROC_KEYPAD
|
||||
test -e $PROC_FIVEWAY && echo unlock > $PROC_FIVEWAY
|
||||
|
||||
# we're always starting from our working directory
|
||||
cd /mnt/us/kindlepdfviewer/
|
||||
cd /mnt/us/koreader/
|
||||
|
||||
# bind-mount system fonts
|
||||
if ! grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts; then
|
||||
mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host
|
||||
if ! grep /mnt/us/koreader/fonts/host /proc/mounts; then
|
||||
mount -o bind /usr/java/lib/fonts /mnt/us/koreader/fonts/host
|
||||
fi
|
||||
|
||||
# check if we are supposed to shut down the Amazon framework
|
||||
@@ -30,8 +30,8 @@ lipc-set-prop com.lab126.pillow disableEnablePillow disable
|
||||
./reader.lua "$1" 2> crash.log
|
||||
|
||||
# unmount system fonts
|
||||
if grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts; then
|
||||
umount /mnt/us/kindlepdfviewer/fonts/host
|
||||
if grep /mnt/us/koreader/fonts/host /proc/mounts; then
|
||||
umount /mnt/us/koreader/fonts/host
|
||||
fi
|
||||
|
||||
# always try to continue cvm
|
||||
11
launchpad/koreader.ini
Executable file
11
launchpad/koreader.ini
Executable file
@@ -0,0 +1,11 @@
|
||||
[Actions]
|
||||
# start koreader with filebrowser in /mnt/us/documents
|
||||
P D = !/mnt/us/koreader/koreader.sh /mnt/us/documents
|
||||
# start koreader with last document
|
||||
P P = !/mnt/us/koreader/koreader.sh
|
||||
# start koreader without framework in /mnt/us/documents
|
||||
P K = !/mnt/us/koreader/koreader.sh --framework_stop /mnt/us/documents
|
||||
# start koreader without framework on last read document
|
||||
P L = !/mnt/us/koreader/koreader.sh --framework_stop
|
||||
# restart amazon framework - when it got irritated
|
||||
P R = !/etc/init.d/framework restart
|
||||
@@ -1,11 +0,0 @@
|
||||
[Actions]
|
||||
# start kindlepdfviewer with filebrowser in /mnt/us/documents
|
||||
P D = !/mnt/us/kindlepdfviewer/kpdf.sh /mnt/us/documents
|
||||
# start kindlepdfviewer with last document
|
||||
P P = !/mnt/us/kindlepdfviewer/kpdf.sh
|
||||
# start kindlepdfviewer without framework in /mnt/us/documents
|
||||
P K = !/mnt/us/kindlepdfviewer/kpdf.sh --framework_stop /mnt/us/documents
|
||||
# start kindlepdfviewer without framework on last read document
|
||||
P L = !/mnt/us/kindlepdfviewer/kpdf.sh --framework_stop
|
||||
# restart amazon framework - when it got irritated
|
||||
P R = !/etc/init.d/framework restart
|
||||
Reference in New Issue
Block a user