Port to new KDesktopFile constructor
I do not know whether that's the correct new way to locate the desktop file for our service.
This commit is contained in:
parent
7193818921
commit
1e0600bbc7
1 changed files with 2 additions and 1 deletions
|
@ -1438,7 +1438,8 @@ 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
|
||||||
const KDesktopFile df("services", service->entryPath());
|
#warning is DataLocation the right location for our script desktop files?
|
||||||
|
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