From d4cacb86c918672865b3e35353359c7aa434cfec Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 19 Dec 2010 17:16:30 +0000 Subject: [PATCH] Got rid of the `cd' hack in the misc/launch_qet.sh script. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1128 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- misc/launch_qet.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/misc/launch_qet.sh b/misc/launch_qet.sh index 2f626542d..d05fba587 100755 --- a/misc/launch_qet.sh +++ b/misc/launch_qet.sh @@ -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 @@ fi # launching ${QET_EXE} ${OPTIONS} $* - -cd - > /dev/null 2>&1