Skip to content
Snippets Groups Projects
Commit 6750cc7f authored by akiraohgaki's avatar akiraohgaki
Browse files

Fix

parent 6475ef05
No related branches found
No related tags found
No related merge requests found
...@@ -242,18 +242,18 @@ bool SystemHandler::applyKdeCursor(const QString &themeName) const ...@@ -242,18 +242,18 @@ bool SystemHandler::applyKdeCursor(const QString &themeName) const
<< "c.group = 'Mouse';" << "c.group = 'Mouse';"
<< "c.writeEntry('cursorTheme', '" + themeName + "');"; << "c.writeEntry('cursorTheme', '" + themeName + "');";
/*if (setConfigWithPlasmaShell(script)) { if (setConfigWithPlasmaShell(script)) {
auto envMessage = QDBusMessage::createMethodCall("org.kde.klauncher5", "/KLauncher", "org.kde.KLauncher", "setLaunchEnv"); auto setLaunchEnv = QDBusMessage::createMethodCall("org.kde.klauncher5", "/KLauncher", "org.kde.KLauncher", "setLaunchEnv");
envMessage.setArguments(QVariantList() << QVariant(QString("XCURSOR_THEME")) << QVariant(themeName)); setLaunchEnv.setArguments(QVariantList() << QVariant(QString("XCURSOR_THEME")) << QVariant(themeName));
QDBusConnection::sessionBus().call(envMessage); QDBusConnection::sessionBus().call(setLaunchEnv);
auto notifyMessage = QDBusMessage::createSignal("/KGlobalSettings", "org.kde.KGlobalSettings", "notifyChange"); auto notifyChange = QDBusMessage::createSignal("/KGlobalSettings", "org.kde.KGlobalSettings", "notifyChange");
notifyMessage.setArguments(QVariantList() << QVariant(qint32(5)) << QVariant(qint32(0))); notifyChange.setArguments(QVariantList() << QVariant(qint32(5)) << QVariant(qint32(0)));
QDBusConnection::sessionBus().send(notifyMessage); QDBusConnection::sessionBus().send(notifyChange);
return true; return true;
} }
return false;*/ return false;
return setConfigWithPlasmaShell(script);
} }
bool SystemHandler::applyKdePlasmaDesktoptheme(const QString &themeName) const bool SystemHandler::applyKdePlasmaDesktoptheme(const QString &themeName) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment