From: Vincent P. <vin...@la...> - 2014-07-29 10:57:36
|
Git commit dd16eca95911941c1916853d9a06e762d64452e2 by Vincent PINON. Committed on 29/07/2014 at 08:26. Pushed by vpinon into branch 'master'. take into acount MLT_PREFIX environment variable at run time M +2 -0 src/mainwindow.cpp http://commits.kde.org/kdenlive/dd16eca95911941c1916853d9a06e762d64452e2 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0ddf978..1a15fdf 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2341,6 +2341,8 @@ void MainWindow::parseProfiles(const QString &mltPath) if (KdenliveSettings::mltpath().isEmpty()) { KdenliveSettings::setMltpath(QString(MLT_PREFIX) + QString("/share/mlt/profiles/")); + } else if (!qgetenv("MLT_PREFIX").isEmpty()) { + KdenliveSettings::setMltpath(qgetenv("MLT_PREFIX")+QString("/share/mlt/profiles/")); } if (KdenliveSettings::rendererpath().isEmpty() || KdenliveSettings::rendererpath().endsWith(QLatin1String("inigo"))) { |