1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-28 01:59:24 +01:00

Using setenv is better

This commit is contained in:
David Sansome 2010-02-12 19:18:09 +00:00
parent 45cdfb7b54
commit e358350309

View File

@ -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