10-28-2013, 02:06 PM | #1 |
Developer's Corner Mascot
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
Kindle Menu PREVIEW (for kindle PW)
I'm working to make a new app launcher for kindle PW (and possibly Touch too, but can't test on it). Just want to share with you a screenshot of the current progress.
What does works: icons in the tray What does almost work: app launchers. They launch scripts but something goes wrong while exectuing, and launched apps don't show. Hope to fix it soon This App start in no time, being only a popup window. I'll add other apps and tray icons once I've fixed the critical bug (release must wait). There will be 12 app shortcuts in the first page; maybe other pages will be available too. And a link to the traditional KUAL app launcher for missing ones. Will be hopefully provided also a script to repleace the store button with Kindle Menu. Meanwhile, if you have ideas or suggestions feel free to ask! Last edited by Aeris; 10-28-2013 at 02:38 PM. |
10-28-2013, 02:41 PM | #2 |
Developer's Corner Mascot
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
Bug details: it seems that from customDialogs don't works all these command that try to "open the screen". Neither the simplest light.sh doesn't work with nativeBridge.setLipcProperty( "com.lab126.system", "sendEvent", "; sh -c 'eips blabla; /usr/bin/light.sh'");
The only working that does "something" on screen is eips.. You can convince yourself by trying these commands: WORKING COMMANDS: lipc-set-prop com.lab126.system sendEvent "; sh -c 'eips blabla2'" /usr/bin/light.sh NOT WORKING: lipc-set-prop com.lab126.system sendEvent "; sh -c '/usr/bin/light.sh'" Scripts that doesn't interact with the screen seems to run well instead. Hope that somebody could help me to find a workaround for this issue... Last edited by Aeris; 10-28-2013 at 02:58 PM. |
Advert | |
|
10-28-2013, 03:16 PM | #3 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Wild guess: maybe your launcher is an "always on top"-like window (in other words, it's placed on top layer defined by window manager configuration file) and light.sh is just hidden under it?
eips works directly with framebuffer ("low-level" stuff), AFAIK, so window manager ("high-level" stuff) rules doesn't apply. |
10-28-2013, 03:21 PM | #4 |
Developer's Corner Mascot
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
Yes, I think is an "always on top"-like window, and also forbids to click around under it... but this would only explain the light.sh thing, not why all the other kual apps doesn't show Ah, with lipc-set-prop com.lab126.system sendEvent "; sh -c '/usr/bin/light.sh'" in terminal I was not talking about customDialog, so...
It seems that sh code runs in a particular enviroment that is different from the same commands running in kterm for example Last edited by Aeris; 10-28-2013 at 03:24 PM. |
10-28-2013, 03:43 PM | #5 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
OK, I think, I now understand your problem right:
Code:
lipc-set-prop com.lab126.system sendEvent "; sh -c '/usr/bin/xtestlab126 -d'" Code:
/usr/bin/xtestlab126 -d Can't help with it, sorry, maybe it's time for searching for other solution. |
Advert | |
|
10-28-2013, 03:47 PM | #6 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Take this as a joke...
Try adding a small sleep before running anything that interacts with the screen. It won't work, but it takes only a moment... |
10-28-2013, 03:48 PM | #7 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
yup thats the one.
Also struggling to think of a solution.. lipc-set-prop com.lab126.system sendEvent "; sh -c ' eips `whoami` '" does actually print "root"... so maybe its not the user level... Ah the joy of "unspecified behaviour" EDIT and... [root@kindle root]# lipc-set-prop com.lab126.system sendEvent "; sh -c ' sleep 1 ; eips `date | tr -d " "` '" also works. (that sleep is just for you Silver :P) The pattern appears to be that shells commands cant be invoked.. let me try a big binary direct.. Last edited by twobob; 10-28-2013 at 03:56 PM. |
10-28-2013, 04:00 PM | #8 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
This is the result of missing from the forum for a while...
|
10-28-2013, 04:02 PM | #9 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
nope. even shifting a binary to /usr/bin or /usr/sbin
- that requires no ancillary supporting libs doesn't help... Mystery [root@kindle root]# ls -al /usr/sbin/eips Quote:
Quote:
EDIT: Ah yeah DISPLAY doh... also the eazykeyboard I was testing doesnt even work WITH that fix great :P doh! Last edited by twobob; 10-28-2013 at 04:22 PM. |
||
10-28-2013, 04:07 PM | #10 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
This works fine:
Code:
lipc-set-prop com.lab126.system sendEvent "; DISPLAY=:0 /usr/bin/xtestlab126 -d &" UPD: and /usr/bin/light.sh just invokes xtestlab126 -l. Last edited by eureka; 10-28-2013 at 04:12 PM. |
10-28-2013, 04:12 PM | #11 |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Aeris, Eureka!
Great discovery! |
10-28-2013, 04:17 PM | #12 |
Developer's Corner Mascot
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
YAYYYYYYY IT WORKSSSS! Eureka !!!!!!!!!!
|
10-28-2013, 04:19 PM | #13 |
Developer's Corner Mascot
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
And it is really useful even while using USBNetwork!!
|
10-28-2013, 04:20 PM | #14 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
nice catch!
|
10-28-2013, 04:27 PM | #15 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
@Aeris, what user actions lead to showing the launcher? Do you start it from KUAL?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
section menu/ main menu link auto added even if output-profile was set to kindle | flyingfoxlee | Recipes | 1 | 05-20-2013 11:42 PM |
Kindle Previewer 2.51 adds 8 Font Faces for Kindle Touch preview mode | jswinden | Amazon Kindle | 4 | 07-19-2012 05:56 PM |
Firmware Update Kindle 3 Firmware 3.0.2 preview | zebradude | Amazon Kindle | 67 | 09-29-2010 05:40 PM |
Preview Amazon's Kindle App for iPad | kilofox | Apple Devices | 8 | 04-03-2010 07:45 AM |
About two months late: Kindle 3 Preview (no, *not* really) | NatCh | Amazon Kindle | 14 | 05-29-2009 07:13 AM |