![]() |
#16 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Quote:
Copy & Paste is the best friend/worst enemy of a programmer ![]() (I copied it from kterm.sh script) then try this: Code:
#!/bin/sh EXPORT LD_LIBRARY_PATH=/mnt/us/local/lib EXTENSION=/mnt/us/extensions/kterm WIDTH=`xwininfo -root|grep Width|cut -d ':' -f 2` # use wider keyboard layout for screen width greater than 600 px if [ ${WIDTH} -gt 600 ]; then PARAM="-l ${EXTENSION}/layouts/keyboard-wide.xml -e /mnt/us/local/mc/bin/mc" else PARAM="-e /mnt/us/local/mc/bin/mc" fi ${EXTENSION}/bin/kterm ${PARAM} # when started from launcher kterm doesn't kill keyboard (why?) so: killall matchbox-keyboard Code:
/mnt/us/local/mc/bin/mc Last edited by encol; 09-01-2016 at 11:23 AM. |
|
![]() |
![]() |
![]() |
#17 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Quote:
If the screen width is NOT gt 600, then it uses the default "keyboard.xml" file, along with associated images in the img/ folder. If the screen width IS gt 600(original logic to detect the then new PW1), then the "keyboard-wide.xml" file, along with the associated images(bigger) in the img-wide/ folder is used. These files are also used for the latest 300 ppi kindles, but we actually need a new "keyboard-extrawide.xml" file! |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
yes, but if the screen width is not gt 600 you have to call mc
![]() |
![]() |
![]() |
![]() |
#19 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The if grew an else statement while we where discussing it. Or PARMS could have been initialized to the < 600 case and then modified if required. Six of one, half a dozen of the other - author's choice. |
|
![]() |
![]() |
![]() |
#20 | ||
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Quote:
Quote:
Code:
export LD_LIBRARY_PATH Code:
/mnt/us/local/mc/bin/mc Code:
EXPORT LD_LIBRARY_PATH Code:
EXPORT: not found Next, since I'm doing this on a KT3, I don't need the bigger keyboard images, so I deleted: /mnt/us/extensions/kterm/layouts/img-wide folder and /mnt/us/extensions/kterm/layouts/keyboard-wide.xml. And shortened /mnt/us/extensions/kterm/bin/kterm.sh to: Code:
#!/bin/sh /mnt/us/extensions/kterm/bin/kterm # when started from launcher kterm doesn't kill keyboard (why?) so: killall matchbox-keyboard Next I shortened /mnt/us/extensions/mc/bin/mc.sh to: Code:
#!/bin/sh export LD_LIBRARY_PATH=/mnt/us/local/lib /mnt/us/extensions/kterm -e /mnt/us/local/mc/bin/mc # when started from launcher kterm doesn't kill keyboard (why?) so: killall matchbox-keyboard Last edited by nasser; 09-01-2016 at 01:33 PM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Does:
"action": "/mnt/us/extensions/kterm", "parms" : "-e /mnt/us/local/mc/bin/mc" work in the kual menu? Note: check capitalization and syntax - I typed that from memory. Note 2: You may have to edit in an rpath for the library so that you don't need to change the LIBRARY_PATH environment variable. patchelf is the tool for that, it is posted somewhere around here as an attachment, probably in my ARMhf thread. Last edited by knc1; 09-01-2016 at 01:38 PM. |
![]() |
![]() |
![]() |
#22 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Quote:
Some typos in both my and encol's scripts! Those "bin"s were being missed out! I finally got it to work by(/mnt/us/extensions/mc/bin/mc.sh): Code:
#!/bin/sh export LD_LIBRARY_PATH=/mnt/us/local/lib /mnt/us/extensions/kterm/bin/kterm -e /mnt/us/local/mc/bin/mc # when started from launcher kterm doesn't kill keyboard (why?) so: killall matchbox-keyboard Oh Well.. I reached till here at least.. Have to see what to do next.. |
|
![]() |
![]() |
![]() |
#23 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Ok.. Found a workaround, somewhat..!
|
![]() |
![]() |
![]() |
#24 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Midnight Commander - KUAL Button plus Start from kterm options
I simplified the steps a little. This way, we have the options of:
Add the following files to /mnt/us/extensions/kterm: mc: Code:
export LD_LIBRARY_PATH=/mnt/us/local/lib /mnt/us/local/mc/bin/mc Code:
export LD_LIBRARY_PATH=/mnt/us/local/lib /mnt/us/local/mc/bin/mc -e $@ Code:
export LD_LIBRARY_PATH=/mnt/us/local/lib /mnt/us/local/mc/bin/mc -v $@ Add files to /mnt/us/extensions/mc config.xml: Code:
<?xml version="1.0" encoding="UTF-8"?> <extension> <information> <name>mc</name> <version>4.7.0.10</version> <author>various</author> <id>mc</id> </information> <menus> <menu type="json" dynamic="true">menu.json</menu> </menus> </extension> Code:
{ "items": [ {"name": "mc", "priority": 1, "action": "/mnt/us/extensions/mc/bin/mc.sh"} ] } Add file to /mnt/us/extensions/mc/bin: mc.sh: Code:
#!/bin/sh /mnt/us/extensions/kterm/bin/kterm -e /mnt/us/extensions/kterm/mc |
![]() |
![]() |
![]() |
#25 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Why you don't share the zip?
|
![]() |
![]() |
![]() |
#26 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Done.
Assumptions:
|
![]() |
![]() |
![]() |
#27 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Screen distortion issue solved!
The new kterm version fixes it. See https://www.mobileread.com/forums/sho...&postcount=208 |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues with Android Commander and 2.5.1 Softroot. | chas0039 | Nook Developer's Corner | 10 | 12-07-2010 08:58 PM |
DR800 Midnight Commander | dima_tr | iRex | 8 | 10-22-2010 11:48 AM |
Ghost Commander 1.18 | leo315 | enTourage eDGe | 0 | 08-28-2010 03:04 AM |
Android Ghost Commander 1.18 | leo315 | enTourage Archive | 0 | 08-28-2010 03:02 AM |
Midnight Commander | yokos | iRex | 9 | 08-10-2008 07:12 AM |