From c68796e84235cd89e1b1c7f206a92d31f161b88b Mon Sep 17 00:00:00 2001 From: Timothyxxx <384084775@qq.com> Date: Mon, 15 Jan 2024 13:52:13 +0800 Subject: [PATCH] Fix minor bugs --- desktop_env/server/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_env/server/main.py b/desktop_env/server/main.py index b102133..f1f11b7 100644 --- a/desktop_env/server/main.py +++ b/desktop_env/server/main.py @@ -41,7 +41,7 @@ def execute_command(): shell = data.get('shell', False) command = data.get('command', "" if shell else []) - if isinstance(command, str): + if isinstance(command, str) and not shell: command = shlex.split(command) # Execute the command without any safety checks. @@ -66,7 +66,7 @@ def launch_app(): shell = data.get("shell", False) command: List[str] = data.get("command", "" if shell else []) - if isinstance(command, str): + if isinstance(command, str) and not shell: command = shlex.split(command) try: