From 66ea731b808a0b783819492e522db3daac53dde4 Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset <ttimo@valvesoftware.com> Date: Wed, 30 Aug 2023 16:24:08 -0500 Subject: [PATCH] linux : run_in_terminal : lookup and use the whole path to the terminal program --- client/devkit_client/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/devkit_client/__init__.py b/client/devkit_client/__init__.py index 53e33ad..820d3a1 100644 --- a/client/devkit_client/__init__.py +++ b/client/devkit_client/__init__.py @@ -1332,8 +1332,9 @@ Start-Sleep -Seconds 3 ['gnome-terminal', '--'], ['xterm', '-e'], ): - if shutil.which(terminal_prefix[0]) is not None: - commands = terminal_prefix + commands + shell_path = shutil.which(terminal_prefix[0]) + if shell_path is not None: + commands = [ shell_path, ] + terminal_prefix[1:] + commands logger.info(f'Open terminal: {commands!r}') matched = True break -- GitLab