I've installed mc on Fossapup64 and the main menu entry generated for it is:
<Program ...>mc</Program>
while it should be:
<Program ...>urxvt -e mc</Program>
I've been advised to edit the .desktop file but maybe it's easier to edit the /usr/sbin/fixmenus script instead. The code below adds urxvt -e to every program in /root/.jwmrc that has "Terminal=true" in its .desktop file.
Code: Select all
termcmd="urxvt -e "
sedprg=""
for file in `grep -rl 'Terminal=true' /usr/share/applications` ; do
cmd=`sed -n '/ -e /!s/^Exec=//p' $file`
[ "$cmd" ] && sedprg="${sedprg}s|>$cmd<|>$termcmd$cmd<|;"
done
sed -i "$sedprg" /root/.jwmrc
Tested on Fossapup64 only. It may work on some other Puppy variants too.