aboutsummaryrefslogtreecommitdiffstats
path: root/bin/qtcreator.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/qtcreator.sh')
-rwxr-xr-xbin/qtcreator.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/qtcreator.sh b/bin/qtcreator.sh
index 80fc4499c9..86826f1e3b 100755
--- a/bin/qtcreator.sh
+++ b/bin/qtcreator.sh
@@ -39,6 +39,7 @@ if test -d "$qtlibdir"; then
qtlibpath=:$qtlibdir
fi
# Add Qt Creator library path
+_ORIGINAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
LD_LIBRARY_PATH=$libdir:$libdir/qtcreator$qtlibpath${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
-exec "$bindir/qtcreator" ${1+"$@"}
+exec "$bindir/qtcreator" -user-library-path "$_ORIGINAL_LD_LIBRARY_PATH" ${1+"$@"}