Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 605:8b8eab39bb83
Attempt to avoid passing on library path to system executables
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2018 14:42:27 +0100 |
parents | d4c16eed673d |
children | ffda5e5444aa |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Thu Jun 21 15:37:36 2018 +0100 +++ b/framework/MainWindowBase.cpp Tue Jul 03 14:42:27 2018 +0100 @@ -4052,7 +4052,11 @@ QProcess::execute("c:/windows/explorer.exe", args); #else args << path; - QProcess::execute( + QProcess process; + QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); + env.remove("LD_LIBRARY_PATH"); + process.setProcessEnvironment(env); + process.start( #if defined Q_OS_MAC "/usr/bin/open", #else