Where are we?
[root@kindle launchpad]#
pwd
Let's look at what we want to port to KUAL
[root@kindle launchpad]#
cat kpdf.ini
Quote:
[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
|
so we need to grab out the .sh and refactor the calls to KUAL buttons.
Let's make a directory:
[root@kindle launchpad]#
mkdir -p /mnt/us/extensions/kpdf/bin
copy out that shell script
[root@kindle launchpad]#
cp ./kpdf.sh /mnt/us/extensions/kpdf/bin/
Convert Launchpad commands to other Launcher commands in menu.json
Code:
{
"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"}
]
}
]
}
[TABS FLATTENED FOR EASE OF READING]
(I did two for now.)
update config.xml
Code:
<?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>
To Be Continued... seems to work fine.
Just extract the
kpdf.zip in /mnt/us/extensions/
(oh and
install the pre-requisites and then The Kual Kindlet itself) LINK REMOVED AS IT WAS ALREADY STALE!
Go get the latest version
from the thread
remember to check you have the latest versions (these links get old) by visiting
The Main KUAL Thread. Cheers
EDIT:
FOR FULL DETAILS OF KPDF SUPPORT IN KUAL PLEASE VISIT IT'S
SUPPORT PAGES