Escape "--" in notifications

This commit is contained in:
Yash Karandikar 2022-05-19 10:54:53 -05:00
parent 11696fcd46
commit 588f9083b3

View file

@ -6,6 +6,7 @@ fn send_notification(icon_path: &str, nick: &str, text: &str) -> PyResult<()> {
Command::new("notify-send")
.arg("-i")
.arg(icon_path)
.arg("--")
.arg(format!("{}:", nick))
.arg(text)
.spawn()?;