KUAL extensions added (since kindlepdfviewer will soon support all devices)

pull/2/merge
Twobob 11 years ago committed by Qingping Hou
parent a93eef04af
commit 0709fdfe4e

@ -0,0 +1,23 @@
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

@ -0,0 +1,37 @@
#!/bin/sh
export LC_ALL="en_US.UTF-8"
echo unlock > /proc/keypad
echo unlock > /proc/fiveway
# we're always starting from our working directory
cd /mnt/us/kindlepdfviewer/
# 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
fi
# check if we are supposed to shut down the Amazon framework
if test "$1" == "--framework_stop"; then
shift 1
/etc/init.d/framework stop
fi
# stop cvm
killall -stop cvm
# finally call reader
./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log || cat /mnt/us/kindlepdfviewer/crash.log
# unmount system fonts
if grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts; then
umount /mnt/us/kindlepdfviewer/fonts/host
fi
# always try to continue cvm
killall -cont cvm || /etc/init.d/framework start
# cleanup hanging process
killall lipc-wait-event

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension>
<information>
<name>KPDF</name>
<version>0.0</version>
<author>Hawhill</author>
<id>helper</id>
</information>
<menus>
<menu type="json" dynamic="true">menu.json</menu>
</menus>
</extension>

@ -0,0 +1,37 @@
#!/bin/sh
export LC_ALL="en_US.UTF-8"
echo unlock > /proc/keypad
echo unlock > /proc/fiveway
# we're always starting from our working directory
cd /mnt/us/kindlepdfviewer/
# 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
fi
# check if we are supposed to shut down the Amazon framework
if test "$1" == "--framework_stop"; then
shift 1
/etc/init.d/framework stop
fi
# stop cvm
killall -stop cvm
# finally call reader
./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log || cat /mnt/us/kindlepdfviewer/crash.log
# unmount system fonts
if grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts; then
umount /mnt/us/kindlepdfviewer/fonts/host
fi
# always try to continue cvm
killall -cont cvm || /etc/init.d/framework start
# cleanup hanging process
killall lipc-wait-event

@ -0,0 +1,12 @@
{
"items": [
{
"name": "KPDF",
"priority": 0,
"items": [
{"name": "Start in documents", "priority": 1, "action": "bin/kpdf.sh", "params": "/mnt/us/documents"},
{"name": "Open last document", "priority": 2, "action": "bin/kpdf.sh"}
]
}
]
}
Loading…
Cancel
Save