#!/bin/sh
#
# Stub script to run mozilla-launcher. We used to use a symlink here
# but OOo brokenness makes it necessary to use a stub instead:
# http://bugs.gentoo.org/show_bug.cgi?id=78890
export MOZILLA_LAUNCHER=firefox-bin
export MOZILLA_LIBDIR=/opt/firefox
export MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH:-/usr/lib/nsbrowser/plugins}
#exec /usr/libexec/mozilla-launcher "$@"
exec aoss /usr/libexec/mozilla-launcher "$@"
You will need to also emerge alsa-oss. I kinda wish the gentoo devs would make this a USE flag, because I’ve had to track down this customization a couple of times.




Did you try this with Plugins? E.g. flash plugin, or mplayer?
Debian used to offer esddsp and similar wrappers, but they caused lots of problems with plugins. So test carefully. Really carefully.
E.g. when no other applications are using sound yet, and you’re using the alsa dmix plugin. It’s easy to get into a redirection loop with these wrappers when using them with applications that do not need them (e.g. mplayer plugin in the browser).
Oh, and use “exec aoss”, not just aoss. No reason to keep the shell running. Exec is not just syntactic sugar, it does change behaviour.
Yes, this seems to be a problematic area on the OSS desktop. Thanks for the pointers, as I changed mine.