Quote:
Originally Posted by encol
Right!
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
|
Tried it. Kterm doesn't start at all. Returns to KUAL.
Quote:
if you launch from kterm:
Code:
/mnt/us/local/mc/bin/mc
mc is loaded?
|
mc runs ONLY if I type:
Code:
export LD_LIBRARY_PATH
first, followed by:
Code:
/mnt/us/local/mc/bin/mc
Note that typing:
Code:
EXPORT LD_LIBRARY_PATH
produces an error:
So I changed EXPORT to export in the script too. Still doesn't work.
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
Now kterm still works.
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
Still mc from KUAL menu doesn't work..