comparison 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
comparison
equal deleted inserted replaced
603:d4c16eed673d 605:8b8eab39bb83
4050 path = path.replace('/', '\\'); 4050 path = path.replace('/', '\\');
4051 args << path; 4051 args << path;
4052 QProcess::execute("c:/windows/explorer.exe", args); 4052 QProcess::execute("c:/windows/explorer.exe", args);
4053 #else 4053 #else
4054 args << path; 4054 args << path;
4055 QProcess::execute( 4055 QProcess process;
4056 QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
4057 env.remove("LD_LIBRARY_PATH");
4058 process.setProcessEnvironment(env);
4059 process.start(
4056 #if defined Q_OS_MAC 4060 #if defined Q_OS_MAC
4057 "/usr/bin/open", 4061 "/usr/bin/open",
4058 #else 4062 #else
4059 "/usr/bin/xdg-open", 4063 "/usr/bin/xdg-open",
4060 #endif 4064 #endif