source: trunk/debathena/debathena/xsession/debian/displaylert @ 23854

Revision 23854, 295 bytes checked in by broder, 15 years ago (diff)
In xsession: * Replace HTML entities in displaymotd and displaylert, to work around LP #387536. (Trac: #284)
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# zenity expects Pangotext, which is something like HTML, so we need
4# to strip entities
5lertmsg=$(lert | sed -e 's/&/\&/;' \
6    -e 's/</\&lt;/' \
7    -e 's/>/\&gt;/' \
8    -e 's/"/\&quot;/' \
9    -e "s/'/\&apos;/")
10[ -n "$lertmsg" ] && zenity --no-wrap --info --text="$lertmsg"
Note: See TracBrowser for help on using the repository browser.