View Single Post
Old 09-01-2016, 10:50 AM   #14
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by encol View Post
Try to launch from kual this script (before check your paths!)
Added LD_LIBRARY_PATH=/mnt/us/local/lib to the top of the .sh file.. but still doesn't work. Kterm loads, but not mc..

Here are the files I used and their contents:
/mnt/us/extensions/mc/bin/mc.sh
Code:
#!/bin/sh

EXPORT LD_LIBRARY_PATH=/mnt/us/local/lib

EXTENSION=/mnt/us/extensions/kterm

PARAM=""

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"
fi

${EXTENSION}/bin/kterm ${PARAM}

# when started from launcher kterm doesn't kill keyboard (why?) so:
killall matchbox-keyboard
/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>
/mnt/us/extensions/mc/menu.json:
Code:
{
	"items": [
		{"name": "mc", "priority": 1, "action": "/mnt/us/extensions/mc/bin/mc.sh"}
	]
}
In addition to these, of course, is the mc package in /mnt/us/local
Where am I going wrong?
nasser is offline   Reply With Quote