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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux