comparison 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
comparison
equal deleted inserted replaced
598:7da68349a0c5 599:a558a3fb44fc
70 #include "base/Exceptions.h" 70 #include "base/Exceptions.h"
71 #include "base/ResourceFinder.h" 71 #include "base/ResourceFinder.h"
72 72
73 #include "data/osc/OSCQueue.h" 73 #include "data/osc/OSCQueue.h"
74 #include "data/midi/MIDIInput.h" 74 #include "data/midi/MIDIInput.h"
75
76 #include "system/System.h"
75 77
76 #include <bqaudioio/SystemPlaybackTarget.h> 78 #include <bqaudioio/SystemPlaybackTarget.h>
77 #include <bqaudioio/SystemAudioIO.h> 79 #include <bqaudioio/SystemAudioIO.h>
78 #include <bqaudioio/AudioFactory.h> 80 #include <bqaudioio/AudioFactory.h>
79 #include <bqaudioio/ResamplerWrapper.h> 81 #include <bqaudioio/ResamplerWrapper.h>
3994 #ifdef Q_OS_MAC 3996 #ifdef Q_OS_MAC
3995 args.append(url); 3997 args.append(url);
3996 process->start("open", args); 3998 process->start("open", args);
3997 #else 3999 #else
3998 #ifdef Q_OS_WIN32 4000 #ifdef Q_OS_WIN32
3999 QString pf(getenv("ProgramFiles")); 4001 std::string pfiles;
4000 QString command = pf + QString("\\Internet Explorer\\IEXPLORE.EXE"); 4002 (void)getEnvUtf8("ProgramFiles", pfiles);
4003 QString command =
4004 QString::fromStdString(pfiles) +
4005 QString("\\Internet Explorer\\IEXPLORE.EXE");
4001 4006
4002 args.append(url); 4007 args.append(url);
4003 process->start(command, args); 4008 process->start(command, args);
4004 #else 4009 #else
4005 if (!qgetenv("KDE_FULL_SESSION").isEmpty()) { 4010 if (!qgetenv("KDE_FULL_SESSION").isEmpty()) {