From 46b99147e9c396a2a590c20cf0dad36d32b719a4 Mon Sep 17 00:00:00 2001 From: David Chang Date: Wed, 31 Jan 2024 10:56:24 +0800 Subject: [PATCH] ver Jan31stv2 added a warning comment about expanding tildes in command parameter of subprocess.xxx --- desktop_env/server/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/desktop_env/server/main.py b/desktop_env/server/main.py index 5cf7ae1..a1e57e7 100644 --- a/desktop_env/server/main.py +++ b/desktop_env/server/main.py @@ -56,7 +56,6 @@ def execute_command(): if isinstance(command, str) and not shell: command = shlex.split(command) - # WARNING: auto expansion should be completed by set `shell=True` and use str as `command` # Expand user directory for i, arg in enumerate(command): if arg.startswith("~/"): @@ -99,7 +98,6 @@ def launch_app(): if isinstance(command, str) and not shell: command = shlex.split(command) - # WARNING: auto expansion should be completed by set `shell=True` and use str as `command` # Expand user directory for i, arg in enumerate(command): if arg.startswith("~/"):