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:
parent
a4bcbf6115
commit
3f2fb1aadc
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user