From 387062cc35874abc8676276e58493514949097fb Mon Sep 17 00:00:00 2001 From: Paul Nameless Date: Sat, 24 Apr 2021 19:18:32 +0300 Subject: [PATCH] Remove shell=True when calling notify --- tg/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tg/utils.py b/tg/utils.py index 54c6d19..9a4c1af 100644 --- a/tg/utils.py +++ b/tg/utils.py @@ -181,10 +181,10 @@ def notify( notify_cmd = cmd.format( icon_path=shlex.quote(config.ICON_PATH), title=shlex.quote(title), - subtitle=shlex.quote(subtitle.replace("'", "'\\''") + "'"), - msg=shlex.quote(msg.replace("'", "'\\''") + "'"), + subtitle=shlex.quote(subtitle), + msg=shlex.quote(msg), ) - subprocess.Popen(notify_cmd, shell=True) + subprocess.Popen(notify_cmd, shell=False) def string_len_dwc(string: str) -> int: