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 | 2f24a1e05f385a0021646e980acdaa8db9cf4dcc (patch) | |
tree | 4c3dfcd95b1eb99f71b133b961db2e9b1f6a9208 /net-im/skype/files | |
parent | Fixed dependencies (diff) | |
download | historical-2f24a1e05f385a0021646e980acdaa8db9cf4dcc.tar.gz historical-2f24a1e05f385a0021646e980acdaa8db9cf4dcc.tar.bz2 historical-2f24a1e05f385a0021646e980acdaa8db9cf4dcc.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 |