[Galago-devel] [BUG] In notification-daemon, body not displayed if it contains "&"
Gilles
gilles.quenot at gmail.com
Mon Jan 30 13:16:33 PST 2012
|$ 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 &
>
> So, I just had to replace
> alert = pynotify.Notification("Hi", "Bye & Pye")
> with
> alert = pynotify.Notification("Hi", "Bye & 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/galago-devel/attachments/20120130/ac241986/attachment.html>
More information about the galago-devel
mailing list