[banshee] Add muinshee launcher script as a symlink
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] Add muinshee launcher script as a symlink
- Date: Sat, 19 Sep 2009 13:26:36 +0000 (UTC)
commit 7af56a66d863082fbe2f68c4c7033a9d29958369
Author: Chow Loong Jin <hyperair gmail com>
Date: Sat May 30 03:28:51 2009 +0800
Add muinshee launcher script as a symlink
Patch banshee-1.in to automagically detect from $0 whether we're running
banshee-1 (or banshee for some systems which use that for backward
compatibility), or muinshee.
Symlink /usr/bin/muinshee to banshee-1 during installation.
Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>
src/Clients/Booter/Makefile.am | 3 +++
src/Clients/Booter/banshee-1.in | 7 ++++++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Booter/Makefile.am b/src/Clients/Booter/Makefile.am
index 30433b1..e6b823a 100644
--- a/src/Clients/Booter/Makefile.am
+++ b/src/Clients/Booter/Makefile.am
@@ -8,3 +8,6 @@ include $(top_srcdir)/build/build.mk
bin_SCRIPTS = banshee-1
EXTRA_DIST += Banshee.exe.config
module_SCRIPTS += Banshee.exe.config
+
+install-exec-hook:
+ $(LN_S) -f banshee-1 $(DESTDIR)$(bindir)/muinshee
diff --git a/src/Clients/Booter/banshee-1.in b/src/Clients/Booter/banshee-1.in
index bf974c0..f0ff4db 100644
--- a/src/Clients/Booter/banshee-1.in
+++ b/src/Clients/Booter/banshee-1.in
@@ -4,13 +4,18 @@ prefix= prefix@
libdir= expanded_libdir@
exec_asm="Banshee.exe"
MONO_EXE="@expanded_libdir@/@PACKAGE@/$exec_asm"
-BANSHEE_EXEC_NAME="banshee-1"
+BANSHEE_EXEC_NAME=$(basename $0)
BANSHEE_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/banshee-1"
export DYLD_LIBRARY_PATH= expanded_libdir@:@expanded_libdir@/@PACKAGE ${DYLD_LIBRARY_PATH+:$DYLD_LIBRARY_PATH}
export LD_LIBRARY_PATH= expanded_libdir@:@expanded_libdir@/@PACKAGE ${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
export GST_PLUGIN_PATH= expanded_libdir@/@PACKAGE@/gstreamer-0.10${GST_PLUGIN_PATH+:$GST_PLUGIN_PATH}
+if [ $BANSHEE_EXEC_NAME = "muinshee" ]; then
+ BANSHEE_CLIENT="Muinshee"
+ export MONO_PATH= expanded_libdir@/@PACKAGE@/Extensions
+fi
+[ ${BANSHEE_EXEC_NAME%%-1} = "banshee" ] && BANSHEE_EXEC_NAME="banshee-1"
[ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]