On Saturday 24 March 2007 15:22, Mark Knoop wrote:
At 22:49 on 23 Mar 2007, Steve Searle <steve(a)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.