Browse Source

Make it possible to run qgroundcontrol-start.sh from outside its directory

QGC4.4
probonopd 9 years ago committed by Daniel Agar
parent
commit
671f7dc798
  1. 9
      deploy/qgroundcontrol-start.sh

9
deploy/qgroundcontrol-start.sh

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
#!/bin/sh
export LD_LIBRARY_PATH=`pwd`/Qt/libs:$LD_LIBRARY_PATH
export QML2_IMPORT_PATH=`pwd`/Qt/qml
export QT_PLUGIN_PATH=`pwd`/Qt/plugins
./qgroundcontrol "$@"
HERE="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH="${HERE}/Qt/libs":$LD_LIBRARY_PATH
export QML2_IMPORT_PATH="${HERE}/Qt/qml"
export QT_PLUGIN_PATH="${HERE}/Qt/plugins"
"${HERE}/qgroundcontrol" "$@"

Loading…
Cancel
Save