December 19th, 2005 | |
Posted in General
If you’re using Ubuntu and gnome, then odds are that esd is starting and taking control of the soundcard.
If you have any apps talking to esd (like your mp3 player) then Firefox won’t be able to talk like it usually does to /dev/dsp.
To solve this, we just need to tell Firefox to use esd and it can share the audio nicely with other apps.
If you’re using BASH this should launch firefox with esd support.
#export FIREFOX_DSP=esd
#firefox
You can also put this near the top of /usr/bin/firefox like this:
#!/bin/sh
FIREFOX_DSP=esd
#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
[...]
And another, and perhaps the best, way to do this is to add the export command to “/home/<username>/.bashrc”.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
export FIREFOX_DSP=esd
[...]