From 28292170d8c02743cabfabba3a1623b8d71b9aa2 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Sat, 8 Jul 2023 01:38:33 +0200 Subject: Port to (and require) Qt 5.15. Drop KDE4 support, fix KDE5 (#2541) * Port to (and require) Qt 5.15. Drop KDE4 support, implement KDE5 support where needed. --------- Co-authored-by: Fabio Bas --- src/modules/system/libkvisystem.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/modules/system/libkvisystem.cpp') diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp index 842d3fa3f..c1d8f08a0 100644 --- a/src/modules/system/libkvisystem.cpp +++ b/src/modules/system/libkvisystem.cpp @@ -50,9 +50,7 @@ #endif #ifdef COMPILE_KDE_SUPPORT -// invokeTerminal() for system.runcmd -// tools we need to work around the absence of -#include +#include #endif // invokeTerminal() #include @@ -759,10 +757,10 @@ static bool system_kvs_cmd_runcmd(KviKvsModuleCommandCall * c) } #ifdef COMPILE_KDE_SUPPORT // We have invokeTerminal(). - - KToolInvocation::invokeTerminal(szCommand.toLocal8Bit()); - -#else // No invokeTerminal() for us, we'll use a + auto job = new KTerminalLauncherJob(szCommand); + job->start(); +#else + // No invokeTerminal() for us, we'll use a // combination of QStringList and QProcess. QStringList szTerminals; #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) // Only »cmd.exe /k« in the list. -- cgit v1.3.1-10-gc9f91