[Galago-devel] [BUG] In notification-daemon, body not displayed if it contains "&"

Gilles gilles.quenot at gmail.com
Mon Jan 30 15:09:40 PST 2012


$ pacman -Q notification-daemon
notification-daemon 0.7.3-1

I don't do anything with this at startup, and that works well like you 
saw on my youtube video.

But the error tell you to substitute the "&" by "&", so do it like 
this ;)

It understand HTML entities like this.

++
&
On 30/01/2012 22:30, Abhijeet Rastogi wrote:
> I am on Archlinux too but I use openbox. I am not really sure what KDE 
> uses but I am using notification-daemon & I autostart this file on 
> startup.
>
> shadyabhi at archlinux ~ $ pacman -Qo 
> /usr/lib/notification-daemon-1.0/notification-daemon
> /usr/lib/notification-daemon-1.0/notification-daemon is owned by 
> notification-daemon 0.7.3-1
> shadyabhi at archlinux ~ $
>
> All my packages are up-to-date & I think that the problem really exists.
>
>
> On Tue, Jan 31, 2012 at 2:46 AM, Gilles <gilles.quenot at gmail.com 
> <mailto:gilles.quenot at gmail.com>> wrote:
>
>
>     |$ pacman -Q | grep notify
>     libnotify 0.7.4-1
>     python-notify 0.1.1-10
>     |
>
>
>     On 30/01/2012 21:06, Abhijeet Rastogi wrote:
>>     So, I just observed that my
>>     "/usr/lib/notification-daemon-1.0/notification-daemon" was
>>     throwing this error.
>>
>>     (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;
>>
>>     So, I just had to replace
>>     alert = pynotify.Notification("Hi", "Bye & Pye")
>>     with
>>     alert = pynotify.Notification("Hi", "Bye &amp; Pye")
>>
>>     @Gilles Which version of notification-daemon are you using?
>>
>>     On Mon, Jan 30, 2012 at 11:53 PM, Gilles <gilles.quenot at gmail.com
>>     <mailto:gilles.quenot at gmail.com>> wrote:
>>
>>         On 30/01/2012 19:15, Abhijeet Rastogi wrote:
>>>         Hi,
>>>         I just discovered a bug that I would like to discuss.
>>>         >>>  import pynotify
>>>         >>>  pynotify.init("Demo")
>>>         True
>>>         >>>  alert = pynotify.Notification("Hi", "Bye&  Pye")
>>>         >>>  alert.show()
>>>         True
>>>         >>>  
>>>
>>>         The corresponding notification:http://i.imgur.com/qzb8j.png
>>>
>>>         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.http://sprunge.us/NAgO
>>>         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.
>>>         -- 
>>>         Regards,
>>>         Abhijeet Rastogi (shadyabhi)
>>>         https://plus.google.com/107316377741966576356/
>>>
>>>
>>>
>>>         _______________________________________________
>>>         galago-devel mailing list
>>>         galago-devel at lists.freedesktop.org  <mailto:galago-devel at lists.freedesktop.org>
>>>         http://lists.freedesktop.org/mailman/listinfo/galago-devel
>>         Hi,
>>
>>         see this video http://youtu.be/MdjvaYeI4Tg
>>
>>         Works well.
>>
>>         I use archlinux x86_64
>>
>>         ++
>>
>>
>>
>>
>>     -- 
>>     Regards,
>>     Abhijeet Rastogi (shadyabhi)
>>     https://plus.google.com/107316377741966576356/
>>
>
>
>
>
> -- 
> Regards,
> Abhijeet Rastogi (shadyabhi)
> https://plus.google.com/107316377741966576356/
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/galago-devel/attachments/20120131/2cc7277a/attachment.htm>


More information about the galago-devel mailing list