Fixed Empty Environment Bug for Subprocesses

QProcessEnvironment was used wrong
This commit is contained in:
Jacob Støren 2013-09-26 15:34:40 +02:00
parent a4bcbf6115
commit 3f2fb1aadc

View File

@ -1028,7 +1028,7 @@ bool RiaApplication::launchProcess(const QString& program, const QStringList& ar
// Set the LD_LIBRARY_PATH to make the octave plugins find the embedded Qt
QProcessEnvironment penv = m_workerProcess->processEnvironment();
QProcessEnvironment penv = QProcessEnvironment::systemEnvironment();
QString ldPath = penv.value("LD_LIBRARY_PATH", "");
if (ldPath == "") ldPath = QApplication::applicationDirPath();