From dd91facca45f93a14f3e0a192930bb1208494a7f Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Tue, 4 Jan 2022 19:43:23 +0800 Subject: [PATCH] use qterminal as the default terminal emulator --- RedPandaIDE/settings.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index ce4265f1..b935de86 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -2828,7 +2828,12 @@ void Settings::Environment::doLoad() mDefaultOpenFolder = QDir::currentPath(); } #ifdef Q_OS_LINUX - mTerminalPath = stringValue("terminal_path","/usr/bin/x-terminal-emulator"); + //use qterminal by default + mTerminalPath = stringValue("terminal_path","/usr/bin/qterminal"); + if (mTerminalPath.isEmpty()) + mTerminalPath = stringValue("terminal_path","/usr/bin/konsole"); + if (mTerminalPath.isEmpty()) + mTerminalPath = stringValue("terminal_path","/usr/bin/x-terminal-emulator"); mAStylePath = includeTrailingPathDelimiter(pSettings->dirs().appDir())+"astyle"; #endif }