Commit d9853110 authored by David Faure's avatar David Faure
Browse files

KRun::runCommand -> KIO::CommandLauncherJob.

Test Plan: kwikdisk, systray icon context menu, "start kdiskfree", works
parent 4cac53ab
......@@ -13,7 +13,7 @@ if(NOT UNIX)
endif(NOT UNIX)
set (QT_MIN_VERSION "5.9.0")
set (KF5_MIN_VERSION "5.42.0")
set (KF5_MIN_VERSION "5.70.0")
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
......
......@@ -34,9 +34,10 @@
#include "kwikdisk_debug.h"
#include <KAboutData>
#include <KDialogJobUiDelegate>
#include <KHelpClient>
#include <KMessageBox>
#include <KRun>
#include <KIO/CommandLauncherJob>
#include <KToolInvocation>
#include <KShell>
#include <KStatusNotifierItem>
......@@ -304,7 +305,9 @@ void KwikDisk::startKDF()
{
qCDebug(KDF);
KRun::runCommand(QStringLiteral( "kdf" ),nullptr);
auto *job = new KIO::CommandLauncherJob(QStringLiteral("kdf"));
job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, nullptr));
job->start();
}
void KwikDisk::invokeHelp()
......
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