Page 1 of 1

How to play a jingle at X startup?

Posted: Thu 08 Nov 2007, 20:38
by slapshot
Hi all,

I would like to play a jingle at X startup but I'm not able to find how such as the woof woof first time you boot Puppy. I tried in rc.local using wavplay etc.. and also in .xinitrc but with no luck.

Anyone can point me ?

Thanks

Posted: Thu 08 Nov 2007, 21:31
by Bruce B
Sure!

You need hopefully a commandline utility compatible with your sound file and one that will terminate when finished, which most cli players will.

The place the barks are run is /etc/profile, near the end. Inspect it and see how it's done.

Posted: Thu 08 Nov 2007, 21:40
by muggins
but it should also work in /root/.xinitrc, whenever the window manager restarts, just before #exec $CURRENTWM. I don't know why it hasn't worked for you.

Posted: Fri 09 Nov 2007, 09:10
by slapshot
Thanks guys :-).

I found my stupid fault:
just before #exec $CURRENTWM. I don't know why it hasn't worked for you.
I put it just after exec jwm :-).

Adding a & at the end of line will background this jingle, don't you ?

Thanks.
Antonio