diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ set(PROJECT_VERSION_MAJOR 5) set(QT_MIN_VERSION "5.14.0") -set(KF5_MIN_VERSION "5.66.0") +set(KF5_MIN_VERSION "5.70.0") set(INSTALL_SDDM_THEME TRUE) find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Widgets Quick QuickWidgets Concurrent Test Network) find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) diff --git a/dataengines/hotplug/CMakeLists.txt b/dataengines/hotplug/CMakeLists.txt --- a/dataengines/hotplug/CMakeLists.txt +++ b/dataengines/hotplug/CMakeLists.txt @@ -15,7 +15,8 @@ KF5::Solid KF5::Service KF5::KIOCore - KF5::KIOWidgets + KF5::KIOWidgets # KDesktopFileActions + KF5::Notifications KF5::I18n ) diff --git a/dataengines/hotplug/deviceserviceaction.cpp b/dataengines/hotplug/deviceserviceaction.cpp --- a/dataengines/hotplug/deviceserviceaction.cpp +++ b/dataengines/hotplug/deviceserviceaction.cpp @@ -23,7 +23,8 @@ #include #include -#include +#include +#include #include #include @@ -159,7 +160,11 @@ MacroExpander mx(device); mx.expandMacrosShellQuote(exec); - KRun::runCommand(exec, QString(), m_service.icon(), nullptr); + KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(exec); + job->setIcon(m_service.icon()); + job->setUiDelegate(new KNotificationJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled)); + job->start(); + deleteLater(); }