From 8b4344f2a295db6ba0aad42148e67c62009bab79 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 26 Aug 2019 18:00:52 +0200 Subject: [PATCH] ProjectExplorer: When running in the terminal on macOS, make it close ... after the application has finished and the user pressed the return key as requested. Fixes: QTCREATORBUG-15138 Change-Id: Id5b9fce553eb96b10aa76ccbd87fb66f02218110 Reviewed-by: Eike Ziller --- share/qtcreator/scripts/openTerminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/scripts/openTerminal.py b/share/qtcreator/scripts/openTerminal.py index afcb94d632f..e931c6bb265 100755 --- a/share/qtcreator/scripts/openTerminal.py +++ b/share/qtcreator/scripts/openTerminal.py @@ -105,7 +105,8 @@ def main(): login_script() + 'cd ' + quote_shell(os.getcwd()) + '\n' + ' '.join([quote_shell(arg) for arg in sys.argv[1:]]) + '\n' + - 'rm ' + quoted_shell_script + '\n' + 'rm ' + quoted_shell_script + '\n' + + 'exit\n' if len(sys.argv) > 1 else '' ) shell_script.write(commands) shell_script.flush()