summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/skype/files/sDaemonWrapper-r1')
-rw-r--r--net-im/skype/files/sDaemonWrapper-r110
1 files changed, 8 insertions, 2 deletions
diff --git a/net-im/skype/files/sDaemonWrapper-r1 b/net-im/skype/files/sDaemonWrapper-r1
index ab9c935289f5..900296188b5f 100644
--- a/net-im/skype/files/sDaemonWrapper-r1
+++ b/net-im/skype/files/sDaemonWrapper-r1
@@ -13,6 +13,12 @@ esdcheck=` ps ax | grep "esd ." | grep -v grep `
skypecmd="${progpath}${progname}.bin"
wrapsound="yes"
+#Use 32bits wrapper in 64 bits system
+xdspsuffix=""
+if [ `uname -m` == "x86_64" ]; then
+ xdspsuffix=32
+fi
+
[ "$1" == "oss" ] && wrapsound="no"
[ -d "$(dirname "${logfile}")" ] || mkdir "$(dirname "${logfile}")"
@@ -28,12 +34,12 @@ else
then
echo "Running artsd found"
echo "Starting artsd wrapped ${progname}" | tee --append "${logfile}"
- skypecmd="env MALLOC_CHECK_=0 artsdsp -m ${skypecmd}"
+ skypecmd="env MALLOC_CHECK_=0 artsdsp${xdspsuffix} -m ${skypecmd}"
elif [[ ${wrapsound} == "yes" && ${shellcheck2} == /usr/bin/esd && -n ${esdcheck} ]]
then
echo "Running esd found"
echo "Starting esd wrapped ${progname}" | tee --append "${logfile}"
- skypecmd="esddsp ${skypecmd}"
+ skypecmd="esddsp${xdspsuffix} ${skypecmd}"
else
if [ ${wrapsound} == "yes" ]
then