Browse Source

Merge pull request #73 from LibrePCB/fix_wrong_path

Fix wrong PATH (remove "/usr/bin" suffix)
master
probonopd 8 years ago
committed by GitHub
parent
commit
06401ef196
  1. 4
      linuxdeployqt/main.cpp

4
linuxdeployqt/main.cpp

@ -74,11 +74,11 @@ int main(int argc, char **argv)
return 1; 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 // this application itself together with helper binaries such as patchelf
QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
QString oldPath = env.value("PATH"); QString oldPath = env.value("PATH");
QString newPath = QCoreApplication::applicationDirPath()+ "/usr/bin" + ":" + oldPath; QString newPath = QCoreApplication::applicationDirPath() + ":" + oldPath;
qDebug() << newPath; qDebug() << newPath;
setenv("PATH",newPath.toUtf8().constData(),1); setenv("PATH",newPath.toUtf8().constData(),1);

Loading…
Cancel
Save