So, I just observed that my "/usr/lib/notification-daemon-1.0/notification-daemon" was throwing this error.<div><br></div><div><div><font color="#ffffff" style="background-color:rgb(153,153,153)">(notification-daemon:13210): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;</font></div>
<div><br></div>So, I just had to replace </div><div><span style="color:rgb(101,55,156);white-space:pre-wrap">alert = pynotify.Notification("Hi", "Bye & Pye")</span></div><div>with </div><div><span style="color:rgb(101,55,156);white-space:pre-wrap">alert = pynotify.Notification("Hi", "Bye &amp; Pye")</span></div>
<div><font color="#65379c"><span style="white-space:pre-wrap"><br></span></font></div><div><span style="white-space:pre-wrap">@Gilles Which version of notification-daemon are you using?</span></div><div><font color="#65379c"><span style="white-space:pre-wrap"><br>
</span></font><div class="gmail_quote">On Mon, Jan 30, 2012 at 11:53 PM, Gilles <span dir="ltr"><<a href="mailto:gilles.quenot@gmail.com">gilles.quenot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
On 30/01/2012 19:15, Abhijeet Rastogi wrote:
</div></div><blockquote type="cite"><div><div class="h5">
<div style="margin-bottom:2em">
<pre style="font-size:medium;width:50em"><span>Hi,</span></pre>
<pre style="font-size:medium;width:50em">I just discovered a bug that I would like to discuss.</pre>
<pre style="font-size:medium;width:50em"><span style="color:rgb(101,55,156);white-space:pre-wrap">>>> import pynotify</span></pre>
<pre style="font-size:medium;white-space:pre-wrap;width:50em"><span style="color:rgb(101,55,156);white-space:pre-wrap">>>> pynotify.init("Demo")</span>
True
<span style="color:rgb(101,55,156);white-space:pre-wrap">>>> alert = pynotify.Notification("Hi", "Bye & Pye")
>>> alert.show()</span>
True
<span style="color:rgb(101,55,156);white-space:pre-wrap">>>> </span>
The corresponding notification: <a href="http://i.imgur.com/qzb8j.png" style="color:rgb(102,51,102)" target="_blank">http://i.imgur.com/qzb8j.png</a>
First, I thought that it's related to python module so I checked using the
libnotify library in c instead.
So, I executed this program. <a href="http://sprunge.us/NAgO" style="color:rgb(102,51,102)" target="_blank">http://sprunge.us/NAgO</a>
with command: ./a.out "Heading" "Body & notification"
Got the same result. No body if I have & in body.
notification-daemon 0.7.3
dbus-python 1.0.0
Please inform if you need something more.</pre>
</div>
-- <br>
Regards,<br>
Abhijeet Rastogi (shadyabhi)<br>
<a href="https://plus.google.com/107316377741966576356/" target="_blank">https://plus.google.com/107316377741966576356/</a><br>
<br>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
galago-devel mailing list
<a href="mailto:galago-devel@lists.freedesktop.org" target="_blank">galago-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/galago-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/galago-devel</a>
</pre>
</blockquote>
Hi,<br>
<br>
see this video <a href="http://youtu.be/MdjvaYeI4Tg" target="_blank">http://youtu.be/MdjvaYeI4Tg</a><br>
<br>
Works well.<br>
<br>
I use archlinux x86_64<br>
<br>
++<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Abhijeet Rastogi (shadyabhi)<br><a href="https://plus.google.com/107316377741966576356/" target="_blank">https://plus.google.com/107316377741966576356/</a><br>
<br>
</div>