mirror of https://github.com/koreader/koreader
New InfoMessage Concept
Part I (still no unireader, crereader, filesearcher & fileinfo) Conflicts: commands.lua dialog.lua filechooser.lua filehistory.lua font.lua inputbox.lua reader.lua resources/info-i.png screen.lua selectmenu.luapull/2/merge
parent
4310b68b3b
commit
0eaf2671fd
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/mnt/us/launchpad/kpdf.sh
|
||||
/mnt/us/kindlepdfviewer/kpdf.sh
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/mnt/us/launchpad/kpdf.sh /mnt/us/documents
|
||||
/mnt/us/kindlepdfviewer/kpdf.sh /mnt/us/documents
|
||||
|
@ -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
|
||||
|
@ -1,11 +1,11 @@
|
||||
[Actions]
|
||||
# start kindlepdfviewer with filebrowser in /mnt/us/documents
|
||||
P D = !/mnt/us/launchpad/kpdf.sh /mnt/us/documents
|
||||
P D = !/mnt/us/kindlepdfviewer/kpdf.sh /mnt/us/documents
|
||||
# start kindlepdfviewer with last document
|
||||
P P = !/mnt/us/launchpad/kpdf.sh
|
||||
P P = !/mnt/us/kindlepdfviewer/kpdf.sh
|
||||
# start kindlepdfviewer without framework in /mnt/us/documents
|
||||
P K = !/mnt/us/launchpad/kpdf.sh --framework_stop /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/launchpad/kpdf.sh --framework_stop
|
||||
P L = !/mnt/us/kindlepdfviewer/kpdf.sh --framework_stop
|
||||
# restart amazon framework - when it got irritated
|
||||
P R = !/etc/init.d/framework restart
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 858 B |
Binary file not shown.
After Width: | Height: | Size: 950 B |
Binary file not shown.
After Width: | Height: | Size: 844 B |
Loading…
Reference in New Issue