diff --git a/kcms/keyboard/CMakeLists.txt b/kcms/keyboard/CMakeLists.txt --- a/kcms/keyboard/CMakeLists.txt +++ b/kcms/keyboard/CMakeLists.txt @@ -56,7 +56,6 @@ KF5::GlobalAccel KF5::I18n KF5::Notifications - KF5::Service KF5::WindowSystem KF5::Plasma KF5::XmlGui diff --git a/kcms/keyboard/layouts_menu.cpp b/kcms/keyboard/layouts_menu.cpp --- a/kcms/keyboard/layouts_menu.cpp +++ b/kcms/keyboard/layouts_menu.cpp @@ -19,10 +19,10 @@ #include "layouts_menu.h" #include "debug.h" -#include #include #include +#include #include "keyboard_config.h" #include "x11_helper.h" @@ -55,7 +55,7 @@ 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()));