[qet] [1128] Got rid of the `cd' hack in the misc/launch_qet.sh script.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1128
Author:   xavier
Date:     2010-12-19 18:16:30 +0100 (Sun, 19 Dec 2010)
Log Message:
-----------
Got rid of the `cd' hack in the misc/launch_qet.sh script.

Modified Paths:
--------------
    branches/0.3/misc/launch_qet.sh

Modified: branches/0.3/misc/launch_qet.sh
===================================================================
--- branches/0.3/misc/launch_qet.sh	2010-12-19 17:15:43 UTC (rev 1127)
+++ branches/0.3/misc/launch_qet.sh	2010-12-19 17:16:30 UTC (rev 1128)
@@ -1,13 +1,12 @@
 #!/bin/bash
 
 current_dir=$(dirname "$0")
-cd "$current_dir"
 
 # configuration
-QET_EXE="../qelectrotech"
-QET_ELEMENTS_DIR="../elements/"
+QET_EXE=$(readlink -f "${current_dir}/../qelectrotech")
+QET_ELEMENTS_DIR=$(readlink -f "${current_dir}/../elements/")
 QET_CONFIG_DIR=""
-QET_LANG_DIR="../lang/"
+QET_LANG_DIR=$(readlink -f "${current_dir}/../lang/")
 # REDEFINE_LANG="es"
 
 # checks for the qelectrotech binary executable file
@@ -37,5 +36,3 @@
 
 # launching
 ${QET_EXE} ${OPTIONS} $*
-
-cd - > /dev/null 2>&1


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/