Created
January 6, 2009 17:29
-
-
Save garrett/43900 to your computer and use it in GitHub Desktop.
Start Banshee with the Muine-like UI (Muinshee)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Hack in some quick 64-bit support | |
test $CPU = x86_64 && arch="64" | |
prefix=/usr | |
libdir=$prefix/lib$arch | |
exec_asm="Muinshee.exe" | |
MONO_EXE=$libdir/banshee-1/$exec_asm | |
export DYLD_LIBRARY_PATH=$libdir:$libdir/banshee-1${DYLD_LIBRARY_PATH+:$DYLD_LIBRARY_PATH} | |
export LD_LIBRARY_PATH=$libdir:$libdir/banshee-1${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH} | |
export GST_PLUGIN_PATH=$libdir/banshee-1/gstreamer-0.10${GST_PLUGIN_PATH+:$GST_PLUGIN_PATH} | |
export MONO_PATH=$libdir/banshee-1/:$libdir/banshee-1/Extensions/ | |
[ -n "$BANSHEE_DEBUG" ] && BANSHEE_DEBUG="--debug" | |
[ -n "$BANSHEE_TRACE" ] && BANSHEE_TRACE="--trace=$BANSHEE_TRACE" | |
[ -n "$BANSHEE_PROFILE" ] && BANSHEE_PROFILE="--profile=$BANSHEE_PROFILE" | |
for arg in $*; do | |
case "x--debug" in ("x$arg") | |
BANSHEE_DEBUG=$arg | |
esac | |
case "x--trace=" in ("x${arg:0:8}") | |
BANSHEE_TRACE=$arg | |
esac | |
case "x--profile=" in ("x${arg:0:10}") | |
BANSHEE_PROFILE=$arg | |
esac | |
case "x--redirect-log" in ("x$arg") | |
BANSHEE_REDIRECT_LOG="$HOME/.config/banshee-1/log" | |
esac | |
done | |
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-1 mono $MONO_OPTIONS $MONO_EXE $@" | |
if [ -z "$BANSHEE_REDIRECT_LOG" ]; then | |
exec $exec_args | |
else | |
mkdir -p `dirname "$BANSHEE_REDIRECT_LOG"` | |
exec $exec_args &> $BANSHEE_REDIRECT_LOG | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment