summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2009-04-14 10:14:51 +0200
committerDaniel Molkentin <daniel.molkentin@nokia.com>2009-04-14 10:14:51 +0200
commit07f1aafa38fc0a15ced67a94291b9ecf7f329588 (patch)
tree5f2c3e4ef8a76cf26121394e3949234fb2194ea1 /bin
parentf0794bd0d4d05baa2c44c1ee4a797f50985f6f24 (diff)
downloadqt-creator-07f1aafa38fc0a15ced67a94291b9ecf7f329588.tar.gz
Fixes: Startup wrapper when Creator in directory with spaces.
Bug reported and fix suggested by catanzag on Qt Labs blog. Thanks! Reviewed By: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/qtcreator6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/qtcreator b/bin/qtcreator
index d00cfa0f58..f66b08778a 100755
--- a/bin/qtcreator
+++ b/bin/qtcreator
@@ -1,9 +1,9 @@
#!/bin/sh
-bindir=$(dirname $(readlink -nf $0))
+bindir=$(dirname "$(readlink -nf $0)")
if test "$(uname -m)" = "x86_64" ; then
- libdir=$(cd ${bindir}/../lib64 ; pwd)
+ libdir=$(cd "${bindir}/../lib64" ; pwd)
else
- libdir=$(cd ${bindir}/../lib ; pwd)
+ libdir=$(cd "${bindir}/../lib" ; pwd)
fi
LD_LIBRARY_PATH="${libdir}/qtcreator:${LD_LIBRARY_PATH}" exec "${bindir}/qtcreator.bin" ${1+"$@"}