View Single Post
Old 11-25-2013, 08:39 AM   #119
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Ok guys, job finished. Javascript launcher done and working, in only 8kb of space (standalone) Kindle Menu updated, screenshot below.

Everything seems to work well, execept... a really few scripts!

In particular, I found that these three scripts doesn't work properly:

- runit, from luakit package. (or, better, it starts but the executable fails. No problems with Midori instead)
- Toggle OFF on wakeup
- Pwchess

Sorry but I give up with this problem for now, I spent a lot of time with it and still cannot figure out why in the world these things, if launched from nativeBridge instead of KUAL, don't work.

The javascript command I use is the following:

Quote:
nativeBridge.setLipcProperty( "com.lab126.system", "sendEvent", "; sh -c 'cd /path/containing/the/script; DISPLAY=:0 script.sh'");
I bundle here two of the three non-launching scripts I've found, so you could maybe help me guessing what make them "special", and run only with KUAL
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_11_25T14_25_55+0100.png
Views:	336
Size:	24.4 KB
ID:	115738  
Attached Files
File Type: zip stuff.zip (593.0 KB, 217 views)

Last edited by Aeris; 11-25-2013 at 10:43 AM.
Aeris is offline   Reply With Quote