Commit fcfd3ae5 authored by hjk's avatar hjk
Browse files

make the startup script work with directories containing spaces.

Thanks to "catanzag" on the labs blog.
parent 163705b8
#!/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+"$@"}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment