notify-send doesn't show message body which contains ampersand (&)

Bug #1424243 reported by Paulo Marcel Coelho Aragão
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnotify (Ubuntu)
New
Undecided
Unassigned

Bug Description

If the message body contains the character ampersand (&), notify-send shows the title, but not the message body.

It's easily reproduced running it with any message body containing &, for instance:

notify-send teste 'this & that'

See the screenshot attached.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: libnotify-bin 0.7.6-1ubuntu3
ProcVersionSignature: Ubuntu 3.16.0-30.40-generic 3.16.7-ckt3
Uname: Linux 3.16.0-30-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Feb 21 17:29:27 2015
InstallationDate: Installed on 2014-11-25 (88 days ago)
InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: libnotify
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paulo Marcel Coelho Aragão (marcelpaulo) wrote :
Revision history for this message
René (j-rene-r) wrote :

If you replace & with & it seems to work:

foo=`echo "this & that" | sed -r 's/[&]+/&/g'`
notfiy-send "teste" "$foo"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.