GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24aef43
)
Better escaping for notify-send
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Fri, 20 Feb 2015 14:25:46 +0000
(15:25 +0100)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Fri, 20 Feb 2015 14:25:46 +0000
(15:25 +0100)
purple/answerscripts.d/00-notify.sh
patch
|
blob
|
blame
|
history
diff --git
a/purple/answerscripts.d/00-notify.sh
b/purple/answerscripts.d/00-notify.sh
index 7e6f8db5bd586ebcac4ab7d2ad9992f2279878f4..6d0117d1f9a98b2fbc789f0a3e2e3ae25fe8085b 100755
(executable)
--- 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
#!/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"
This page took
0.136733 seconds
and
4
git commands to generate.