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

Mark Knoop mark at opus11.net
Sat Mar 24 14:22:58 UTC 2007


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




More information about the fedora-list mailing list