OK, this is more of a bash/distro question but I hope someone can help me out. I need to set ALSA_CARD globally. I've added a line to /etc/bash.bashrc that sets ALSA_CARD depending on the value of $DISPLAY. if [ ${DISPLAY+1} == 1 ] ; then [[ -f /etc/asound_card.conf ]] && . /etc/asound_card.conf export ALSA_CARD=`eval echo '$SOUND'$(echo $DISPLAY | cut -f2 -d: | cut -f1 -d.)` fi Now this works fine if I open a terminal window and run my apps. But apps started from the menu don't have ALSA_CARD set. This apparently happens for gnome as well as xfce4. How can I set ALSA_CARD globally? --Yan ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user