From d66a447d3cac8a9a40225a421b67fab1ebb1742c Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Fri, 20 Feb 2015 15:25:46 +0100 Subject: [PATCH] Better escaping for notify-send --- purple/answerscripts.d/00-notify.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/purple/answerscripts.d/00-notify.sh b/purple/answerscripts.d/00-notify.sh index 7e6f8db..6d0117d 100755 --- a/purple/answerscripts.d/00-notify.sh +++ b/purple/answerscripts.d/00-notify.sh @@ -1,3 +1,4 @@ #!/bin/sh #Show notification for each incomming message -notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$(echo "$ANSW_MSG" | sed -e 's/&/&/g')" +which recode >/dev/null && ANSW_MSG="$(echo "$ANSW_MSG" | recode ascii..html)" +notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG" -- 2.30.2