I simplified the steps a little. This way, we have the options of:
- Starting mc from KUAL(with the double touch, font decrease menu button select hack to fix the screen)
- Starting mc from kterm - type ./mc
- Starting mc in editor mode from kterm (file name to be supplied as parameter) - type ./mcedit
- 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!