Can you click on a desktop icon and play a .wav as well as starting the app?

Nigel Henry cave.dnb at tiscali.fr
Sat Mar 24 18:02:51 UTC 2007


On Saturday 24 March 2007 15:22, Mark Knoop wrote:
> At 22:49 on 23 Mar 2007, Steve Searle <steve at stevesearle.com> wrote:
> > Around 10:43pm on Friday, March 23, 2007 (UK time), Nigel Henry
> >
> > scrawled:
> > > Is it possible to set more than one command on a desktop launcher?
> > > For example, you have a music app and want to play a few bars of
> > > music as the app is launching when you click on the icon. Is that
> > > possible?
> >
> > One way would be to create a short shell script to play a wav file
> > with the "play" command, then to launch the application that was
> > required.
> >
> > E.g.
> >
> > #!/bin/bash
> > play /path/to/some/file.wav
> > firefox
>
> Or perhaps a slight improvement:
>
> #!/bin/bash
> play /path/to/some/file.wav &
> exec firefox
>
> --
> Mark Knoop

Thanks for that Mark. I'll keep a reference to that. Struggling to get play, 
or aplay to play the .wav, at the same time time as another soundapp is 
running at the mo.

Nigel.




More information about the fedora-list mailing list