On my system, for apps that use SDL, I need to set an environmental variable:
export SDL_AUDIODRIVER=alsa
to get the sound to work properly. How do I set up my GNOME session so that this variable is present for all applications (so if I run an application through Nautilus, or use DBGL, the apps work properly)?
EDIT:
Configuration files I have set (and reset my machine after each) to no avail:
.xsession
.xsessionrc
.gnomerc
.bash_profile
.profile
<-- This works in the general case, but not when your distro is setting the variable elsewhere./etc/profile