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

Revision 23854, 332 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# We need to strip out HTML entities because zenity takes something
4# that pretends to be HTML
5motd=$(get_message -new | sed -e 's/&/\&/;' \
6    -e 's/</\&lt;/' \
7    -e 's/>/\&gt;/' \
8    -e 's/"/\&quot;/' \
9    -e "s/'/\&apos;/")
10[ -n "$motd" ] && zenity --no-wrap --info --text="
11Athena message of the day:
12$motd"
Note: See TracBrowser for help on using the repository browser.