I found a solution to my problem. I delete the directory ~/.pulse and recreate it every time:

#!/bin/bash

if [ ! "x${UTAUDIODEV}" == "x" ] ; then

    rm -rf ${HOME}/.pulse
#   if [ ! -d ${HOME}/.pulse ] ; then
    mkdir ${HOME}/.pulse
#   fi

   # create pulseaudio configuration for utaudio
   PULSECONF=${HOME}/.pulse/default.pa
sed "s|UTAUDIODEV|$UTAUDIODEV|g" /opt/SUNWut/lib/utpulse.pa > ${PULSECONF}

   # create asoundrc for pulseaudio redirection
   ASOUNDRC=${HOME}/.asoundrc
   echo -n > ${ASOUNDRC}
   echo "pcm.!default { " >> ${ASOUNDRC}
   echo "  type pulse" >> ${ASOUNDRC}
   echo "}" >> ${ASOUNDRC}
   echo "ctl.!default { " >> ${ASOUNDRC}
   echo "  type pulse" >> ${ASOUNDRC}
   echo "}" >> ${ASOUNDRC}

fi

Now, the sound works every time I log in.

Hana
_______________________________________________
SunRay-Users mailing list
SunRay-Users@filibeto.org
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to