public
Last active

Start Banshee with the Muine-like UI (Muinshee)

  • Download Gist
muinshee
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.