<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    $ pacman -Q notification-daemon <br>
    notification-daemon 0.7.3-1<br>
    <br>
    I don't do anything with this at startup, and that works well like
    you saw on my youtube video.<br>
    <br>
    But the error tell you to substitute the "&amp;" by "&amp;amp;", so
    do it like this ;)<br>
    <br>
    It understand HTML entities like this.<br>
    <br>
    ++<br>
    <font color="#ffffff">&amp;amp;</font><br>
    On 30/01/2012 22:30, Abhijeet Rastogi wrote:
    <blockquote
cite="mid:CACXxYfyRw27gLJ6owhXwUGusTCe7sKMCMebz4tvZ-cCpjtRvwA@mail.gmail.com"
      type="cite">I am on Archlinux too but I use openbox. I am not
      really sure what KDE uses but I am using notification-daemon &amp;
      I autostart this file on startup.
      <div><br>
      </div>
      <div>
        <div>shadyabhi@archlinux ~ $ pacman -Qo
          /usr/lib/notification-daemon-1.0/notification-daemon&nbsp;</div>
        <div>/usr/lib/notification-daemon-1.0/notification-daemon is
          owned by notification-daemon 0.7.3-1</div>
        <div>shadyabhi@archlinux ~ $&nbsp;</div>
        <div><br>
        </div>
        <div>All my packages are up-to-date &amp; I think that the
          problem really exists.</div>
        <div><br>
        </div>
        <br>
        <div class="gmail_quote">On Tue, Jan 31, 2012 at 2:46 AM, 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"> <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;text-align:-webkit-auto;text-indent:0px;text-transform:none;word-spacing: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>
              <div>
                <div class="h5"> <br>
                  On 30/01/2012 21:06, Abhijeet Rastogi wrote:
                  <blockquote 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"
                            target="_blank">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> On 30/01/2012 19:15, Abhijeet
                                Rastogi wrote: </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <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>
                </div>
              </div>
            </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>