Yan Seiner wrote:
I've added a line to /etc/bash.bashrc that sets ALSA_CARD depending on
the value of $DISPLAY.
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.
You could set ALSA_CARD when X is started (in .xinitrc or
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 ]] .