# Temporary workaround to tell Python Sugar app to play sound.
global Sound
if {$Sound} {
- echo PlaySound [lindex $soundspec 0]
+ #echo PlaySound [lindex $soundspec 0]
signal ignore SIGCHLD
exec res/sounds/player res/sounds/[string tolower [lindex $soundspec 0]].wav &
}
-#!/bin/sh
+#!/bin/bash
-PLAYER=true
+PLAYER=
if [ -x "`which aplay`" ]; then
PLAYER=aplay
PLAYER="mplayer -nogui -nocache"
fi
-exec ${PLAYER} "$@" >/dev/null 2>&1
+if [ "x${PLAYER}" = "x" ]; then
+ echo "Can't find audio player!"
+ echo "Please make sure you have aplay, play or mplayer in your path."
+ if [ "`uname`" = "Darwin" ]; then
+ echo "A working play for OS X is available from:"
+ echo "http://www.hieper.nl/html/play.html"
+ fi
+else
+ exec ${PLAYER} "$@" >/dev/null 2>&1
+fi