[MPlayer-users] Starting mplayer from inittab breaks slave mode

Krzysztof Duchnowski amidk75 at gmail.com
Thu Mar 29 13:00:20 CEST 2012


On 29.03.2012 07:53, Roguedr wrote:
> Not sure if this is a mplayer issue or some misunderstanding about how
> linux works.


you must put mplayer in some sort of terminal that will work no matter
what, eg. screen or tmux (i prefer tmux lately):

for root user:
> $ mp:2345:respawn:/usr/bin/tmux -new -d -s 'mplayer_slave' -n 'MPlayer slave' '/usr/bin/mplayer -idle'

for normal user:
> $ mp:2345:respawn:/usr/bin/sudo -u username /usr/bin/tmux -new -d -s 'mplayer_slave' -n 'MPlayer slave' '/usr/bin/mplayer -idle'


After that, if you want to see what mplayer spill to console you invoke:
> $ sudo -u username tmux -2u attach -t 'mplayer_slave'

then CTRL+SHIFT+a and 'd' will unattach you from it.


You could do it in rc.local as well and in case that no one can attach
to root pipes then run it as a user (make mplayer user for that).

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list