/usr/bin/banshee is in banshee 2.9.0+really2.6.2-2ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 | #!/usr/bin/env bash
prefix=/usr
libdir=/usr/lib
exec_asm="Banshee.exe"
MONO_EXE="/usr/lib/banshee/$exec_asm"
BANSHEE_EXEC_NAME=$(basename $0)
BANSHEE_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/banshee-1"
export LD_LIBRARY_PATH=/usr/lib/banshee:/usr/lib/banshee/Extensions:/usr/lib/banshee/Backends:/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export GST_PLUGIN_PATH=/usr/lib/banshee/gstreamer-0.10${GST_PLUGIN_PATH:+:$GST_PLUGIN_PATH}
if [ $BANSHEE_EXEC_NAME = "muinshee" ]; then
BANSHEE_CLIENT="Muinshee"
export MONO_PATH=/usr/lib/banshee/Extensions
fi
[ -n "$BANSHEE_DEBUG" -o -f "${BANSHEE_CONFIG_DIR}/always-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")
[ -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
# We were testing the SGen compacting GC; disabled for 2.0 release b/c there are serious
# issues with sgen on Mono 2.8.0
#export MONO_ENV_OPTIONS="--gc=sgen"
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 $BANSHEE_CLIENT"
if [ -z "$BANSHEE_REDIRECT_LOG" ]; then
exec $exec_args "$@"
else
mkdir -p `dirname "$BANSHEE_REDIRECT_LOG"`
(echo "exec $exec_args " "$@"; echo; exec $exec_args "$@") &> $BANSHEE_REDIRECT_LOG
fi
|