From 2a8143929ca25f30be082cd3b095ff2a0e3b51ea Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 20 Jan 2021 18:43:30 +0300 Subject: [PATCH] bos #20558 [CEA 20539][Forum] Universal SALOME distribution and libnss3.so Firefox browser issue --- src/LightApp/LightApp_Application.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index d9379a40a..b0d8f7f8f 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1220,12 +1220,17 @@ protected: { if ( !myBrowser.isEmpty() && !myUrl.isEmpty() ) { + QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); #ifdef WIN32 QString cmdLine = QString( "\"%1\" %2 \"%3\"" ).arg( myBrowser, myParameters, myUrl ); #else QString cmdLine = QString( "%1 %2 \"%3\"" ).arg( myBrowser, myParameters, myUrl ); + // remove LD_LIBRARY_PATH from the environement before starting launcher to avoid bad interactions. + // (especially in the case of universal binaries) + env.remove("LD_LIBRARY_PATH"); #endif QProcess* proc = new QProcess(); + proc->setProcessEnvironment(env); proc->start( cmdLine ); if ( !proc->waitForStarted() ) { -- 2.39.2