diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,8 @@ find_package(KF5Kirigami2 2.1 REQUIRED) +find_package(LibKWorkspace ${PROJECT_VERSION} REQUIRED) + add_subdirectory(core) add_subdirectory(app) add_subdirectory(categories) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -30,6 +30,7 @@ KF5::XmlGui KF5::DBusAddons KF5::ConfigGui + PW::KWorkspace ) install( TARGETS systemsettings5 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) diff --git a/app/main.cpp b/app/main.cpp --- a/app/main.cpp +++ b/app/main.cpp @@ -25,14 +25,18 @@ #include #include +#include + #include "SystemSettingsApp.h" #include "SettingsBase.h" int main( int argc, char *argv[] ) { //exec is systemsettings5, but we need the QPT to use the right config from the qApp constructor //which is before KAboutData::setApplicationData QCoreApplication::setApplicationName(QStringLiteral("systemsettings")); + + KWorkSpace::detectPlatform(argc, argv); SystemSettingsApp application(argc, argv); KCrash::initialize();