On 12/29/2015 5:15 PM, waltd...@waltdnes.org wrote:

snip

   Another MC user here.  Here are a couple of entries I've inserted at
the top of my ~/.config/mc/mc.ext file.  The first entry in mc.ext that
matches the extension takes precedence, so you want your custom entries
at the top.  What these entries do is to launch an xterm.  The xterm is
what actually launches mplayer.  All the spew from mplayer appears in
the xterm, not in MC.  If I want to kill the player part way through a
song/video, I can do it from the small xterm.  The xterm automatically
disappears as soon as the song/video finishes.

#
#FLAC and WAV and MP3 files (to free up mc console)
regex/i/\.(wav|flac|mp3)$
  Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p &
#
# Videos
regex/i/\.(avi|mov|mp4|mpeg)$
  Open=/usr/bin/xterm -e /usr/bin/mplayer %d/%p &

   This should also work for you with VLC.  Substitute "vlc", or
whatever, for "mplayer".  This "indirection" method is useful for *ANY*
program that spews diagnostics/whatever to the console that launched it.
E.g. I get dignostics/etc with abiword.


Thank you!
I will try this out.
That's a way of doing things that never would have occurred to me.
-Skippy

Reply via email to