Change the way to put environnement variable on Windows

This commit is contained in:
baydam
2018-03-23 00:35:13 +00:00
parent adae1e3699
commit 12f22ca9fd
+2 -2
View File
@@ -31,8 +31,8 @@ MainApplication::MainApplication(int &argc, char *argv[])
QString pluginPath = QCoreApplication::applicationDirPath() + "/plugins";
QString libPath = QCoreApplication::applicationDirPath() + "/lib";
_putenv_s("GST_PLUGIN_PATH", pluginPath.toLocal8Bit());
_putenv_s("PATH", libPath.toLocal8Bit());
putenv("GST_PLUGIN_PATH", pluginPath.toLocal8Bit());
putenv("PATH", libPath.toLocal8Bit());
// Set settings default format
QSettings::setDefaultFormat(QSettings::IniFormat);