From d83fd2d0350bb0c5081948eb1bee69bda2f92148 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Wed, 15 Jan 2020 14:02:59 -0800 Subject: [PATCH] update to place the terminal command in quotes --- daemon/core/gui/coreclient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/core/gui/coreclient.py b/daemon/core/gui/coreclient.py index d997f180..f4dbb25d 100644 --- a/daemon/core/gui/coreclient.py +++ b/daemon/core/gui/coreclient.py @@ -525,8 +525,9 @@ class CoreClient: try: terminal = self.app.guiconfig["preferences"]["terminal"] response = self.client.get_node_terminal(self.session_id, node_id) - logging.info("get terminal %s", response.terminal) - os.system(f"{terminal} {response.terminal} &") + cmd = f'{terminal} "{response.terminal}" &' + logging.info("launching terminal %s", cmd) + os.system(cmd) except grpc.RpcError as e: self.app.after(0, show_grpc_error, e)