Re: MC and external apps
- From: Holger Herrlich <holgerherrlich05 arcor de>
- To: mc-devel gnome org
- Subject: Re: MC and external apps
- Date: Sat, 24 Sep 2011 22:39:17 +0200
Some samples what worked for me.
note that -geometry command tells xterm the size (not mc),
also note the & to regain control,
usually /etc/mc/mc.ext will give more samples.
in /etc/mc/mc.ext first match rules!
Holger
Open=if [ "$DISPLAY" = "" ]; \
then play %f; \
else (xterm -bc -geometry '90x11+200+100' \
-fn -*-fixed-medium-r-normal-*-9-*-*-*-*-*-iso8859-1 \
-fb -*-fixed-medium-r-normal-*-9-*-*-*-*-*-iso8859-1 \
-e "mplayer %f" &); fi
Edit=if [ "$DISPLAY" = "" ]; \
then mcview; \
else (audacity %f > /dev/null 2>&1 &); fi
On 09/17/2011 12:49 PM, Monkish wrote:
>
> I'm trying to get MC to open sound files in MoC, and .txt files in leafpad.
> But I'm having no luck at all. I was able to get it to open video files in
> vlc instead of mplayer, but for some reason I can't get the other two apps
> to work.
>
> For MoC, under the Sound Files section of MC, I changed:
>
> Open=mplayer -vo null %f
>
> to
>
> Open=wterm -e mocp -vo null %f
>
> But that was a no-go. And under the Documents section I changed:
>
> Open=%vim{EDITOR:vi} %f
>
> to
>
> Open=%leafpad{EDITOR:leafpad} %f
>
> So does anyone happen to see what I'm doing wrong? One more thing, is there
> anyway to get MC to automatically open to a certain size when I start it?
> I'm constantly having to resize the terminal window everytime I start MC and
> I was just wondering if there was a way around this.
>
> Thanks for any help.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]