[banshee/stable] Translate BANSHEE_CLIENT=Foo environment variable into --client=Foo
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee/stable] Translate BANSHEE_CLIENT=Foo environment variable into --client=Foo
- Date: Fri, 24 Apr 2009 16:21:41 -0400 (EDT)
commit 0cd67f322b53b16e635ce704a11d52425b452a3e
Author: Aaron Bockover <abockover novell com>
Date: Fri Apr 24 16:22:59 2009 -0400
Translate BANSHEE_CLIENT=Foo environment variable into --client=Foo
---
src/Clients/Booter/banshee-1.in | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/Clients/Booter/banshee-1.in b/src/Clients/Booter/banshee-1.in
index bb7121b..bf974c0 100644
--- a/src/Clients/Booter/banshee-1.in
+++ b/src/Clients/Booter/banshee-1.in
@@ -31,15 +31,23 @@ for arg in $*; do
case "x--redirect-log" in ("x$arg")
[ -z "$(pidof $BANSHEE_EXEC_NAME)" ] && BANSHEE_REDIRECT_LOG="${BANSHEE_CONFIG_DIR}/log"
esac
+
+ case "x--client=" in ("x${arg:0:9}")
+ BANSHEE_CLIENT="${arg:9}"
+ esac
done
+if [ ! -z "$BANSHEE_CLIENT" ]; then
+ BANSHEE_CLIENT="--client=${BANSHEE_CLIENT}"
+fi
+
if [ -n "$BANSHEE_DEBUG" -o -n "$BANSHEE_TRACE" -o -n "$BANSHEE_PROFILE" ]; then
MONO_OPTIONS="$BANSHEE_DEBUG $BANSHEE_TRACE $BANSHEE_PROFILE"
echo "** Running Mono with $MONO_OPTIONS **"
fi
# Finally - environment is set up, time to run our beloved
-exec_args="-a $BANSHEE_EXEC_NAME mono $MONO_OPTIONS $MONO_EXE $BANSHEE_DEBUG"
+exec_args="-a $BANSHEE_EXEC_NAME mono $MONO_OPTIONS $MONO_EXE $BANSHEE_DEBUG $BANSHEE_CLIENT"
if [ -z "$BANSHEE_REDIRECT_LOG" ]; then
exec $exec_args "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]