Merge pull request #346 from coreemu/bugfix/coretk-terminal

update to place the terminal command in quotes
This commit is contained in:
bharnden 2020-01-15 14:12:37 -08:00 committed by GitHub
commit f1d8608add
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)