From e358350309a9c028a07904dd9ffe094cb4cffbcc Mon Sep 17 00:00:00 2001 From: David Sansome Date: Fri, 12 Feb 2010 19:18:09 +0000 Subject: [PATCH] Using setenv is better --- src/xine-engine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xine-engine.cpp b/src/xine-engine.cpp index 8de3beac5..f442ea646 100644 --- a/src/xine-engine.cpp +++ b/src/xine-engine.cpp @@ -118,8 +118,7 @@ XineEngine::init() qDebug() << "'Bringing joy to small mexican gerbils, a few weeks at a time.'"; #ifdef Q_OS_WIN32 - putenv(QString("XINE_PLUGIN_PATH=" + - QCoreApplication::applicationDirPath() + "/xine/plugins").toAscii().constData()); + setenv("XINE_PLUGIN_PATH", QString(QCoreApplication::applicationDirPath() + "/xine/plugins").toAscii().constData(), 1); #endif // Q_OS_WIN32 #ifdef Q_OS_DARWIN