forked from qt-creator/qt-creator
make the startup script work with directories containing spaces.
Thanks to "catanzag" on the labs blog.
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
bindir=$(dirname $(readlink -nf $0))
|
bindir=$(dirname "$(readlink -nf $0)")
|
||||||
if test "$(uname -m)" = "x86_64" ; then
|
if test "$(uname -m)" = "x86_64" ; then
|
||||||
libdir=$(cd ${bindir}/../lib64 ; pwd)
|
libdir=$(cd "${bindir}/../lib64" ; pwd)
|
||||||
else
|
else
|
||||||
libdir=$(cd ${bindir}/../lib ; pwd)
|
libdir=$(cd "${bindir}/../lib" ; pwd)
|
||||||
fi
|
fi
|
||||||
LD_LIBRARY_PATH="${libdir}/qtcreator:${LD_LIBRARY_PATH}" exec "${bindir}/qtcreator.bin" ${1+"$@"}
|
LD_LIBRARY_PATH="${libdir}/qtcreator:${LD_LIBRARY_PATH}" exec "${bindir}/qtcreator.bin" ${1+"$@"}
|
||||||
|
Reference in New Issue
Block a user