Public bug reported:

Binary package hint: pulseaudio

currently the padsp program has:

if [ x"$LD_PRELOAD" = x ] ; then
   LD_PRELOAD="libpulsedsp.so"
else
   LD_PRELOAD="$LD_PRELOAD libpulsedsp.so"
fi
export LD_PRELOAD
exec "$@"

it should really do:
if ps ax | grep -v grep | grep pulseaudio > /dev/null;  then
    if [ x"$LD_PRELOAD" = x ] ; then
       LD_PRELOAD="libpulsedsp.so"
    else
       LD_PRELOAD="$LD_PRELOAD libpulsedsp.so"
    fi
fi
export LD_PRELOAD
exec "$@"

or with whatever test you want to use to see if pulse is running. This
means applications can then actually have padsp in the exec line of
.desktop files, and will work with pulse running, and without. the
variations of ubuntu would all have to make sure that the padsp file is
always available (ie always install pulseaudio-utils)

Alternatively, you could make another script not part of the pulseaudio
package which optionally runs padsp if and only if pulseaudio is
running. ie a script called padsp1, run as "padsp1 application" and
containing:

if ps ax | grep -v grep | grep pulseaudio > /dev/null;  then
    exec "padsp $@"
else
    exec "$@"
fi

** Affects: pulseaudio (Ubuntu)
     Importance: Undecided
         Status: New

-- 
padsp should only route sound through pulseaudio if it is running
https://bugs.launchpad.net/bugs/269939
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to