Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 599:a558a3fb44fc plugin-path-config
Use wide-char env variable lookup
author | Chris Cannam |
---|---|
date | Fri, 08 Jun 2018 11:53:04 +0100 |
parents | f03bc1d38cac |
children | 021d42e6c8cb |
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);