Fix loading of scripted effects

Port to QStandardPaths was incorrect - well it was a guess which I
couldn't test...
This commit is contained in:
Martin Gräßlin 2013-08-01 08:04:31 +02:00
parent bd7da7ccd0
commit 36429c0010

View file

@ -1426,8 +1426,7 @@ bool EffectsHandlerImpl::loadEffect(const QString& name, bool checkDefault)
bool EffectsHandlerImpl::loadScriptedEffect(const QString& name, KService *service)
{
#ifdef KWIN_BUILD_SCRIPTING
#warning is DataLocation the right location for our script desktop files?
const KDesktopFile df(QStandardPaths::DataLocation, QStringLiteral("kde5/services/") + service->entryPath());
const KDesktopFile df(QStandardPaths::GenericDataLocation, QStringLiteral("kde5/services/") + service->entryPath());
const QString scriptName = df.desktopGroup().readEntry<QString>(QStringLiteral("X-Plasma-MainScript"), QString());
if (scriptName.isEmpty()) {
kDebug(1212) << "X-Plasma-MainScript not set";