use qterminal as the default terminal emulator

This commit is contained in:
Roy Qu 2022-01-04 19:43:23 +08:00
parent cc1e384001
commit dd91facca4
1 changed files with 6 additions and 1 deletions

View File

@ -2828,7 +2828,12 @@ void Settings::Environment::doLoad()
mDefaultOpenFolder = QDir::currentPath(); mDefaultOpenFolder = QDir::currentPath();
} }
#ifdef Q_OS_LINUX #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"; mAStylePath = includeTrailingPathDelimiter(pSettings->dirs().appDir())+"astyle";
#endif #endif
} }