mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Fix escape
This commit is contained in:
parent
70f8be1081
commit
9765bc5263
1 changed files with 2 additions and 2 deletions
|
@ -181,8 +181,8 @@ def notify(
|
||||||
notify_cmd = cmd.format(
|
notify_cmd = cmd.format(
|
||||||
icon_path=shlex.quote(config.ICON_PATH),
|
icon_path=shlex.quote(config.ICON_PATH),
|
||||||
title=shlex.quote(title),
|
title=shlex.quote(title),
|
||||||
subtitle=shlex.quote(shlex.escape(subtitle)),
|
subtitle=shlex.quote(subtitle.replace("'", "'\\''") + "'"),
|
||||||
msg=shlex.quote(shlex.escape(msg)),
|
msg=shlex.quote(msg.replace("'", "'\\''") + "'"),
|
||||||
)
|
)
|
||||||
subprocess.Popen(notify_cmd, shell=True)
|
subprocess.Popen(notify_cmd, shell=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue