summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2004-06-22 11:29:32 +0000
committerGustavo Felisberto <humpback@gentoo.org>2004-06-22 11:29:32 +0000
commit5711a7bfe741da8f7eae07dfa39e90634b111046 (patch)
tree474146a2de18b40a3e9c9463e08b1476bb74abf1 /net-im/skype/files
parentFixed dependencies (Manifest recommit) (diff)
downloadgentoo-2-5711a7bfe741da8f7eae07dfa39e90634b111046.tar.gz
gentoo-2-5711a7bfe741da8f7eae07dfa39e90634b111046.tar.bz2
gentoo-2-5711a7bfe741da8f7eae07dfa39e90634b111046.zip
updates to ebuild and wrapper
Diffstat (limited to 'net-im/skype/files')
-rw-r--r--net-im/skype/files/artsskype37
1 files changed, 21 insertions, 16 deletions
diff --git a/net-im/skype/files/artsskype b/net-im/skype/files/artsskype
index 023582497fbb..adb11aebe4c0 100644
--- a/net-im/skype/files/artsskype
+++ b/net-im/skype/files/artsskype
@@ -1,30 +1,35 @@
#!/bin/bash
progname="skype"
progpath="/opt/${progname}/"
-shellcheck=` which artsshell 2> /dev/null `
+shellcheck1=` which artsshell 2> /dev/null `
+shellcheck2=` which esd 2> /dev/null `
artsdcheck=` ps x | grep artsd | grep -v grep `
-if [[ -z ${shellcheck} ]]
+esdcheck=` ps x | grep esd | grep -v grep `
+
+if [[ -z ${shellcheck1} || -z ${shellcheck2} ]]
then
- echo "No installed artsshell found"
+ echo "No installed artsshell or esd found"
echo "Assuming you're running no sound daemon"
echo "Starting ${progname} without a sound wrapper"
${progpath}/${progname}.bin
else
- if [ ${shellcheck} == ${KDEDIR}/bin/artsshell ]
+ if [[ ${shellcheck1} == ${KDEDIR}/bin/artsshell && -n ${artsdcheck} ]]
then
- echo "installed artsshell found"
- echo "Checking for a running artsd"
- if [[ -n ${artsdcheck} ]]
- then
- echo "Running artsd found"
- echo "Starting artsd wrapped ${progname}"
- artsdsp ${progpath}/${progname}.bin
- else
- echo "No running artsd found"
- echo "Starting ${progname} without artsd"
- ${progpath}/${progname}.bin
- fi
+ echo "Running artsd found"
+ echo "Starting artsd wrapped ${progname}"
+ artsdsp ${progpath}/${progname}.bin
+
+ elif [[ ${shellcheck2} == /usr/bin/esd && -n ${esdcheck} ]]
+ then
+ echo "Running esd found"
+ echo "Starting esd wrapped ${progname}"
+ esddsp ${progpath}/${progname}.bin
+ else
+ echo "No running artsd or esd found"
+ echo "Starting ${progname} without sound daemon"
+ ${progpath}/${progname}.bin
fi
+
fi
exit 0