#!/bin/sh ### Brad Laue # Wrapper launching Kazaa through wine; traps /dev/dsp through the arts # daemon if KDE is running, working around a bug. # ARTSCMD="" ARTSSTAT=`artsshell status | head -1 | awk '{print $3}'` case $ARTSSTAT in suspended) echo "ArtsD is not running." ARTSCMD="exec" ;; busy) echo "ArtsD is running" ARTSCMD="artsdsp" echo "The command will execute through $ARTSCMD" ;; *) echo "Meh" ARTSCMD="exec" ;; esac $ARTSCMD wine "C:\\Program Files\\KaZaA Lite\\Kazaa.exe"