Fix wrong PATH (remove "/usr/bin" suffix)

That suffix is no longer required because linuxdeployqt itself is now
also located in that directory.
This commit is contained in:
U. Bruhin
2017-02-16 18:45:03 +01:00
parent c01275a7f6
commit b3b9ec7d85
+2 -2
View File
@@ -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);