[MPlayer-users] One instance of mplayer, no more

Dotan Cohen dotancohen at gmail.com
Mon Oct 15 21:22:01 CEST 2007


On 15/10/2007, Nico Sabbi <Nicola.Sabbi at poste.it> wrote:
> Il Monday 15 October 2007 16:16:31 Dotan Cohen ha scritto:
> > I just introduced the stepmother to Linux, and she is rather
> > enjoying Fedora. However, she cannot program herself to close any
> > open instance of mplayer before clicking on another file. I'm no
> > good at bash, and I need this working for her _today_, so I'm
> > kindly asking if anyone has a wrapper script for mplayer that
> > checks if there is a running instance, and if so closes it before
> > opening a new instance. Basically, she needs the appearance that
> > the new file is 'replacing' the old file in the open program. Sorry
> > for the bother, and thanks in advance.
> >
>
> killall -INT mplayer; mplayer file will do, but not open a new
> mplayer in an already open window if it's what you want.

If she were typing at the CLI then that would be what I'd tell her to
do. But she's a mouse-only grandma. She clicks on files in konqueror.
I need a script to put in ~/bin/mplayer that will kill any open
/usr/bin/mplayer and then open /usr/bin/mplayer with all the arguments
that were passed to ~/bin/mplayer.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת


More information about the MPlayer-users mailing list