Commit 13358835 authored by Nicolas Fella's avatar Nicolas Fella

[kcms/keyboard] Port away from KToolInvokation

Summary: kdeinit will most likely be dropped. Use QProcess to start it normally

Test Plan: Open KCM from SNI

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: davidedmundson, plasma-devel

Tags: #plasma

Maniphest Tasks: T12185

Differential Revision: https://phabricator.kde.org/D25549
parent 484426ff
......@@ -56,7 +56,6 @@ target_link_libraries(kded_keyboard
KF5::GlobalAccel
KF5::I18n
KF5::Notifications
KF5::Service
KF5::WindowSystem
KF5::Plasma
KF5::XmlGui
......
......@@ -19,10 +19,10 @@
#include "layouts_menu.h"
#include "debug.h"
#include <ktoolinvocation.h>
#include <klocalizedstring.h>
#include <QAction>
#include <QProcess>
#include "keyboard_config.h"
#include "x11_helper.h"
......@@ -55,7 +55,7 @@ void LayoutsMenu::actionTriggered(QAction* action)
QStringList args;
args << QStringLiteral("--args=--tab=layouts");
args << QStringLiteral("kcm_keyboard");
KToolInvocation::kdeinitExec(QStringLiteral("kcmshell5"), args);
QProcess::startDetached(QStringLiteral("kcmshell5"), args);
}
else {
LayoutUnit layoutUnit(LayoutUnit(action->data().toString()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment