<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <br>
    <pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; white-space: pre-wrap; color: rgb(255, 255, 255); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(51, 51, 51); "><code>$ pacman -Q | grep notify
libnotify 0.7.4-1
python-notify 0.1.1-10
</code></pre>
    <br>
    On 30/01/2012 21:06, Abhijeet Rastogi wrote:
    <blockquote
cite="mid:CACXxYfyQbD+jo9rQ+1zEaTumy23=Gpb8mVCm_g_9vU+_=yHTEg@mail.gmail.com"
      type="cite">So, I just observed that my
      "/usr/lib/notification-daemon-1.0/notification-daemon" was
      throwing this error.
      <div><br>
      </div>
      <div>
        <div><font style="background-color:rgb(153,153,153)"
            color="#ffffff">(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;amp;</font></div>
        <div><br>
        </div>
        So, I just had to replace&nbsp;</div>
      <div><span style="color:rgb(101,55,156);white-space:pre-wrap">alert
          = pynotify.Notification("Hi", "Bye &amp; Pye")</span></div>
      <div>with&nbsp;</div>
      <div><span style="color:rgb(101,55,156);white-space:pre-wrap">alert
          = pynotify.Notification("Hi", "Bye &amp;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">&lt;<a moz-do-not-send="true"
              href="mailto:gilles.quenot@gmail.com">gilles.quenot@gmail.com</a>&gt;</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">&gt;&gt;&gt; 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">&gt;&gt;&gt; pynotify.init("Demo")</span>
True
<span style="color:rgb(101,55,156);white-space:pre-wrap">&gt;&gt;&gt; alert = pynotify.Notification("Hi", "Bye &amp; Pye")
&gt;&gt;&gt; alert.show()</span>
True
<span style="color:rgb(101,55,156);white-space:pre-wrap">&gt;&gt;&gt; </span>

The corresponding notification: <a moz-do-not-send="true" 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 moz-do-not-send="true" href="http://sprunge.us/NAgO" style="color:rgb(102,51,102)" target="_blank">http://sprunge.us/NAgO</a>
with command: ./a.out "Heading" "Body &amp; notification"

Got the same result. No body if I have &amp; 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 moz-do-not-send="true"
                      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 moz-do-not-send="true" href="mailto:galago-devel@lists.freedesktop.org" target="_blank">galago-devel@lists.freedesktop.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                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 moz-do-not-send="true"
          href="https://plus.google.com/107316377741966576356/"
          target="_blank">https://plus.google.com/107316377741966576356/</a><br>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>