From 36429c00109fd2f3ab33884756c4b910716cd93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 1 Aug 2013 08:04:31 +0200 Subject: [PATCH] Fix loading of scripted effects Port to QStandardPaths was incorrect - well it was a guess which I couldn't test... --- effects.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/effects.cpp b/effects.cpp index 3fee73ad5b..8b9623a6c4 100644 --- a/effects.cpp +++ b/effects.cpp @@ -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(QStringLiteral("X-Plasma-MainScript"), QString()); if (scriptName.isEmpty()) { kDebug(1212) << "X-Plasma-MainScript not set";