View Single Post
Old 09-02-2016, 02:00 AM   #24
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: 477
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:
  1. Starting mc from KUAL(with the double touch, font decrease menu button select hack to fix the screen)
  2. Starting mc from kterm - type ./mc
  3. Starting mc in editor mode from kterm (file name to be supplied as parameter) - type ./mcedit
  4. Starting mc in viewer mode from kterm (file name to be supplied as parameter) - type ./mcview

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
mcedit:
Code:
export LD_LIBRARY_PATH=/mnt/us/local/lib
/mnt/us/local/mc/bin/mc -e $@
mcview:
Code:
export LD_LIBRARY_PATH=/mnt/us/local/lib
/mnt/us/local/mc/bin/mc -v $@
Create folder /mnt/us/extensions/mc
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>
menu.json:
Code:
{
	"items": [
		{"name": "mc", "priority": 1, "action": "/mnt/us/extensions/mc/bin/mc.sh"}
	]
}
Create folder /mnt/us/extensions/mc/bin
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
The screen fix hack for the KUAL button mc is a slight drawback... until somebody can improve on it!
nasser is offline   Reply With Quote