diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2004-06-22 11:29:32 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2004-06-22 11:29:32 +0000 |
commit | 5711a7bfe741da8f7eae07dfa39e90634b111046 (patch) | |
tree | 474146a2de18b40a3e9c9463e08b1476bb74abf1 /net-im/skype/files | |
parent | Fixed dependencies (Manifest recommit) (diff) | |
download | gentoo-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/artsskype | 37 |
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 |