LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Starting vlc from midnight commander (https://www.linuxquestions.org/questions/slackware-14/starting-vlc-from-midnight-commander-4175480327/)

Stephen Morgan 10-10-2013 02:19 PM

Starting vlc from midnight commander
 
When I select a video and hit enter it opens in vlc, which is fine. Unfortunately mc then disappears and I'm left with an almost empty xterm until I close vlc. Does the same thing with mplayer. Doesn't do it in XFCE, but does in ratpoison.

GazL 10-10-2013 04:10 PM

The trick is to edit mc's extension handling file ~/.config/mc/mc.ext and make sure that whatever is playing your video doesn't keep stdin/stdout open. I also background it so that mc returns to the panel display.

Here's my mplayer example:
Code:

include/video
        Open=(mplayer -really-quiet -noconsolecontrols %f >/dev/null 2>&1 &)



All times are GMT -5. The time now is 04:19 AM.