From b3b9ec7d85ecc01a470e754fdca5754bca11a8bf Mon Sep 17 00:00:00 2001 From: "U. Bruhin" Date: Thu, 16 Feb 2017 18:45:03 +0100 Subject: [PATCH] Fix wrong PATH (remove "/usr/bin" suffix) That suffix is no longer required because linuxdeployqt itself is now also located in that directory. --- linuxdeployqt/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linuxdeployqt/main.cpp b/linuxdeployqt/main.cpp index 356c55c..de11012 100644 --- a/linuxdeployqt/main.cpp +++ b/linuxdeployqt/main.cpp @@ -74,11 +74,11 @@ int main(int argc, char **argv) return 1; } - // Allow binaries in the usr/bin subdirectory to be found; this is useful for bundling + // Allow binaries next to linuxdeployqt to be found; this is useful for bundling // this application itself together with helper binaries such as patchelf QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); QString oldPath = env.value("PATH"); - QString newPath = QCoreApplication::applicationDirPath()+ "/usr/bin" + ":" + oldPath; + QString newPath = QCoreApplication::applicationDirPath() + ":" + oldPath; qDebug() << newPath; setenv("PATH",newPath.toUtf8().constData(),1);