Bug#349005: artsdsp supposed to work for shell scripts
> I still can't see the reason why artsdsp does not work if you call
> shellscripts (for example: realplayer) with it. Probably I'm just
> missing somethign here.
artsdsp is a script.
The error message "artsdsp works only for binaries" comes from the file check:
# setup artsdsp preload to hijack calls made to /dev/dsp
origargs="$@"
binary=`which $1`
machine=`uname -m`
set `file -L $binary`
case $2 in
ELF)
;;
*)
echo "artsdsp works only for binaries"
exit 1
esac
The check fails for wrapper script:
file -L /usr/bin/firefox
/usr/bin/firefox: POSIX shell script text executable
file -L /usr/lib/iceweasel/firefox-bin
/usr/lib/iceweasel/firefox-bin: ELF 64-bit LSB executable, x86-64, version 1
(SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
a possible workaround is to use readlink.
I don't have realplayer but I'll bet this is a similar trick.
cheers,
Fathi
Reply to: