mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed Empty Environment Bug for Subprocesses
QProcessEnvironment was used wrong
This commit is contained in:
@@ -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
|
// 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", "");
|
QString ldPath = penv.value("LD_LIBRARY_PATH", "");
|
||||||
|
|
||||||
if (ldPath == "") ldPath = QApplication::applicationDirPath();
|
if (ldPath == "") ldPath = QApplication::applicationDirPath();
|
||||||
|
|||||||
Reference in New Issue
Block a user