View Single Post
Old 01-09-2014, 03:44 PM   #957
michald
Member
michald began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2014
Device: kobo touch
Howdy all.
I believe I found a way to run koreader and nickel from kobo launcher with a fully operational touchscreen in all. Steps below. Appreciate any feedback.

This method involves writing a custom script into /tmp/exec.sh when koreader or nickel buttons are pressed in kobo launcher followed by terminating kobo launcher. When the launcher exits the custom script executes and launches the other software.

1) Add the following script as /usr/local/KoboLauncher/exec.sh

#!/bin/sh

F="/tmp/exec.sh"
echo "#!/bin/sh" > $F
echo "exec $1" >> $F
chmod +x $F
killall launcher

2) Add the following to kobolauncher applications.ini

Koreader = /usr/local/KoboLauncher/exec.sh "/usr/local/Koreader/koreader_kobo.sh /mnt"
Kobo Software = /usr/local/KoboLauncher/exec.sh "/usr/local/Kobo/nickel -qws -skipFontLoad"

3) Run Kobolauncher from the startup script /etc/init.d/rcS (or other) via the following code, appended to the end of rcS, instead of the default nickel (i left the hinderburg process running at all times):

(cd /usr/local/KoboLauncher; while [ 1 ]; do ./KoboLauncherA.sh; if [ -e /tmp/exec.sh ]; then /tmp/exec.sh; rm /tmp/exec.sh; fi; done) &

NOTE THE BRACKETS ABOVE!!!

4) To execute koreader or nickel from kobo launcher, press "Koreader" or "Kobo Software" button in launcher. Koreader or nickel should launch.

5) You may have to change /usr/local/KoboLauncher paths above to the correct path where kobo launcher is installed on your device.

BTW. Great thread. I am enjoying my hacked linux kobo (which ran android before however it was too slow for me).

EDIT: Changed so that koreader and nickel execute directly after pressing the button

Last edited by michald; 01-11-2014 at 09:23 AM.
michald is offline   Reply With Quote