From 38ca72ab5ebd93a801b7ae247e3b78b57959047d Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 22 Aug 2022 16:12:56 +0200 Subject: [PATCH] windeployqt: Fix PATH manipulation code for non-Windows platforms Use QDir::listSeparator() for additional entries in PATH instead of the hard-coded semicolon. This is a preparation for running windeployqt on non-Windows platforms. Change-Id: I84f1da130508da7a0f3190d811acf35477564bf7 Reviewed-by: Oliver Wolff --- src/tools/windeployqt/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/windeployqt/main.cpp b/src/tools/windeployqt/main.cpp index 132b3d5d25..556a6341aa 100644 --- a/src/tools/windeployqt/main.cpp +++ b/src/tools/windeployqt/main.cpp @@ -1626,7 +1626,7 @@ int main(int argc, char **argv) const QByteArray qtBinPath = QFile::encodeName(QDir::toNativeSeparators(QCoreApplication::applicationDirPath())); QByteArray path = qgetenv("PATH"); if (!path.contains(qtBinPath)) { // QTBUG-39177, ensure Qt is in the path so that qt.conf is taken into account. - path += ';'; + path += QDir::listSeparator().toLatin1(); path += qtBinPath; qputenv("PATH", path); }