From: Tomas Mudrunka Date: Sun, 22 Feb 2015 17:05:58 +0000 (+0100) Subject: simplified recoding of entities for notify-send X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=c3eb58d2228fa552ce59aa84c8fc38b5dd842116;p=mirrors%2Flibpurple-core-answerscripts.git simplified recoding of entities for notify-send --- diff --git a/purple/answerscripts.d/00-notify.sh b/purple/answerscripts.d/00-notify.sh index 504959f..dc7033d 100755 --- a/purple/answerscripts.d/00-notify.sh +++ b/purple/answerscripts.d/00-notify.sh @@ -1,4 +1,4 @@ #!/bin/sh #Show notification for each incomming message -which recode >/dev/null && ANSW_MSG="$(echo "$ANSW_MSG" | recode ..html)" +ANSW_MSG="$(echo "$ANSW_MSG" | sed -e 's/&/&\;/g;s//\>/g')" notify-send -i pidgin "$ANSW_PROTOCOL:$ANSW_R_NAME" "$ANSW_MSG"