aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux/xbmc.sh.in
diff options
context:
space:
mode:
authoranssih <anssih@svn>2010-06-08 22:55:26 +0000
committeranssih <anssih@svn>2010-06-08 22:55:26 +0000
commitf815fe9905c9e187d2a5ff9b562fe9b685adc633 (patch)
tree8f0399958a0a78780aa79a8ecca929bad3286dad /tools/Linux/xbmc.sh.in
parentf36e250bde71323020f67f80170bba2baed024d3 (diff)
fixed: hardcoding of libdir and datadir in xbmc.sh.in
This fixes cases like libdir="/usr/lib64". This time make sure it works even when libdir and datadir reference prefix and exec_prefix variables. git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30990 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux/xbmc.sh.in')
-rw-r--r--tools/Linux/xbmc.sh.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in
index 9ccad4eaa5..76eb7668a6 100644
--- a/tools/Linux/xbmc.sh.in
+++ b/tools/Linux/xbmc.sh.in
@@ -19,7 +19,9 @@
# http://www.gnu.org/copyleft/gpl.html
SAVED_ARGS="$@"
-LIBDIR="@prefix@/lib"
+prefix="@prefix@"
+exec_prefix="@exec_prefix@"
+LIBDIR="@libdir@"
# Check for some options used by this script
while [ "$#" -gt "0" ]
@@ -97,7 +99,7 @@ print_crash_report()
echo "Crash report available at $FILE"
}
-python @prefix@/share/xbmc/FEH.py "$SAVED_ARGS"
+python @datadir@/xbmc/FEH.py "$SAVED_ARGS"
RET=$?
if [ $RET -ne 0 ]; then
exit $RET