[gcompris/gcomprixo] Fixed runit script for the XO.



commit 79af736d378a8cfb44dbf86fd726b242691fe969
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sat May 16 17:21:07 2009 +0200

    Fixed runit script for the XO.
---
 src/runit.sh |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/runit.sh b/src/runit.sh
index 81f6da7..4da2038 100755
--- a/src/runit.sh
+++ b/src/runit.sh
@@ -8,9 +8,16 @@ path=`dirname $0`
 . $1/init_path.sh
 
 menudir=$path
-localedir=$path/locale
 
-if [ ! -f $localedir ]; then
+# Search GCompris locale in different places
+# Full bundle case
+localedir=$path/share/locale
+if [ ! -d $localedir ]; then
+  # Single bundle case
+  localedir=$path/locale
+fi
+if [ ! -d $localedir ]; then
+  # On the host
   localedir=/usr/share/locale
 fi
 
@@ -34,7 +41,7 @@ $gcompris -L $plugindir \
     -P $pythonplugindir \
     -A $resourcedir \
     -M $menudir \
-    --locale_dir=$path/locale \
+    --locale_dir=$localedir \
     -l $section/$activity \
     --drag-mode=2clicks \
     $*



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]