aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system
diff options
context:
space:
mode:
authorGravatar ctrlaltca2023-07-08 01:38:33 +0200
committerGravatar GitHub2023-07-08 01:38:33 +0200
commit28292170d8c02743cabfabba3a1623b8d71b9aa2 (patch)
tree03c7269f527a40a5b86863db7c111f2552afe46c /src/modules/system
parentMerge branch 'bugfix/script-editor-out-of-range-exception' (diff)
downloadKVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.gz
KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.bz2
KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.zip
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 <fabio.bas@officineinformatiche.net>
Diffstat (limited to 'src/modules/system')
-rw-r--r--src/modules/system/libkvisystem.cpp12
1 files changed, 5 insertions, 7 deletions
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 <KToolInvocation>
+#include <KTerminalLauncherJob>
#endif
// invokeTerminal()
#include <QProcess>
@@ -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.