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:
parent
bd7da7ccd0
commit
36429c0010
1 changed files with 1 additions and 2 deletions
|
@ -1426,8 +1426,7 @@ bool EffectsHandlerImpl::loadEffect(const QString& name, bool checkDefault)
|
||||||
bool EffectsHandlerImpl::loadScriptedEffect(const QString& name, KService *service)
|
bool EffectsHandlerImpl::loadScriptedEffect(const QString& name, KService *service)
|
||||||
{
|
{
|
||||||
#ifdef KWIN_BUILD_SCRIPTING
|
#ifdef KWIN_BUILD_SCRIPTING
|
||||||
#warning is DataLocation the right location for our script desktop files?
|
const KDesktopFile df(QStandardPaths::GenericDataLocation, QStringLiteral("kde5/services/") + service->entryPath());
|
||||||
const KDesktopFile df(QStandardPaths::DataLocation, QStringLiteral("kde5/services/") + service->entryPath());
|
|
||||||
const QString scriptName = df.desktopGroup().readEntry<QString>(QStringLiteral("X-Plasma-MainScript"), QString());
|
const QString scriptName = df.desktopGroup().readEntry<QString>(QStringLiteral("X-Plasma-MainScript"), QString());
|
||||||
if (scriptName.isEmpty()) {
|
if (scriptName.isEmpty()) {
|
||||||
kDebug(1212) << "X-Plasma-MainScript not set";
|
kDebug(1212) << "X-Plasma-MainScript not set";
|
||||||
|
|
Loading…
Reference in a new issue