Commit 671f7dc7 authored by probonopd's avatar probonopd Committed by Daniel Agar

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

parent ab89dc30
#!/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" "$@"
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