LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2013, 02:19 PM   #1
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 164

Rep: Reputation: 19
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.
 
Old 10-10-2013, 04:10 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,904

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
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 &)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Midnight Commander Woodsman Slackware 10 06-30-2011 07:44 PM
[SOLVED] Midnight-commander new2nagios Linux - Software 4 08-05-2009 10:55 AM
Midnight Commander takes a lot of time starting julot Linux - Software 3 07-26-2005 08:20 PM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 04:26 PM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration