mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Remove shell=True when calling notify
This commit is contained in:
parent
b1db4d6672
commit
387062cc35
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue