Mercurial > hg > svapp
changeset 599:a558a3fb44fc plugin-path-config
Use wide-char env variable lookup
author | Chris Cannam |
---|---|
date | Fri, 08 Jun 2018 11:53:04 +0100 |
parents | 7da68349a0c5 |
children | ca96a514fbbb |
files | framework/MainWindowBase.cpp |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Tue May 15 11:11:49 2018 +0100 +++ b/framework/MainWindowBase.cpp Fri Jun 08 11:53:04 2018 +0100 @@ -73,6 +73,8 @@ #include "data/osc/OSCQueue.h" #include "data/midi/MIDIInput.h" +#include "system/System.h" + #include <bqaudioio/SystemPlaybackTarget.h> #include <bqaudioio/SystemAudioIO.h> #include <bqaudioio/AudioFactory.h> @@ -3996,8 +3998,11 @@ process->start("open", args); #else #ifdef Q_OS_WIN32 - QString pf(getenv("ProgramFiles")); - QString command = pf + QString("\\Internet Explorer\\IEXPLORE.EXE"); + std::string pfiles; + (void)getEnvUtf8("ProgramFiles", pfiles); + QString command = + QString::fromStdString(pfiles) + + QString("\\Internet Explorer\\IEXPLORE.EXE"); args.append(url); process->start(command, args);