macOS: Replace openTerminal.command by python script

This script will become even less trivial in the future, so use an
actually usable programming language for it.

Change-Id: I4fa1c8d327f97585bf8dde0ffaefc5fac7c1ca18
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Eike Ziller
2018-09-05 17:43:22 +02:00
parent 3ffe3588d7
commit 53f0e6c0ee
3 changed files with 76 additions and 37 deletions

View File

@@ -351,7 +351,7 @@ TerminalCommand ConsoleProcess::defaultTerminalEmulator()
defaultTerm = []() -> TerminalCommand {
if (HostOsInfo::isMacHost()) {
const QString termCmd = QCoreApplication::applicationDirPath()
+ "/../Resources/scripts/openTerminal.command";
+ "/../Resources/scripts/openTerminal.py";
if (QFileInfo::exists(termCmd))
return {termCmd, "", ""};
return {"/usr/X11/bin/xterm", "", "-e"};