Check that perl is installed before attempting to start cantata-dynamic in local mode.

BUG: 240
This commit is contained in:
craig.p.drummond@gmail.com
2013-06-17 11:09:25 +00:00
committed by craig.p.drummond@gmail.com
parent 6e2ae6654b
commit a31d9e84f9
2 changed files with 7 additions and 0 deletions

View File

@@ -283,6 +283,11 @@ void Dynamic::start(const QString &name)
return;
}
if (Utils::findExe("perl").isEmpty()) {
emit error(i18n("You need to install \"perl\" on your system in order for Cantata's dynamic mode to function."));
return;
}
QString fName(Utils::configDir(constDir, false)+name+constExtension);
if (!QFile::exists(fName)) {