title part is not displayed in desktop notification

Bug #154925 reported by Starcrasher
2
Affects Status Importance Assigned to Milestone
Decibel Audio Player
Fix Released
Undecided
Anonym25712

Bug Description

Using decibel audio player v0.06.3 (14th October 2007)

When using, the desktop notification plugin only the "body" part is displayed not the "title" part.
If the title part is copied in the body part, then it is displayed showing the title tag is present in the file.

Revision history for this message
Anonym25712 (anonym25712) wrote :

Can you make a screenshot of both the notification and the configuration dialog? Thanks.

Revision history for this message
Starcrasher (starcrasher1) wrote : Re: [Bug 154925] Re: title part is not displayed in desktop notification

Hello François,

Thanks for your interest, and your reactivity.

Le samedi 20 octobre 2007 à 14:22 +0000, François Ingelrest a écrit :
> Can you make a screenshot of both the notification and the configuration
> dialog? Thanks.

Of course, as you will see the title appears only one time.
It should be twice since I put it in body too.

Joined files :
      * Capture-Desktop-Notification.png
      * Capture-Desktop-Notification-Preferences.png

It's a very nice player, by the way.

Regards,

Starcrasher

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Revision history for this message
Anonym25712 (anonym25712) wrote :

I'm sorry, but I can't find your files?

Revision history for this message
Starcrasher (starcrasher1) wrote :

When replying mail the images joined was dropped..

Revision history for this message
Starcrasher (starcrasher1) wrote :
Revision history for this message
Anonym25712 (anonym25712) wrote :

Does this problem occurs only when you use tags for the title? (i.e., do you get the same result when putting a simple string as the title?).

Which distribution are you using, and what are the versions of "libnotify" and "python-notify"?

If you type these commands in a shell, what result do you get:

notify-send "Title" "Body"
notify-send "</b>Title<b>" "Body"

(you may have to install "libnotify-bin" to get the "notify-send" command).

Thanks :-)

Revision history for this message
Starcrasher (starcrasher1) wrote :

Le dimanche 21 octobre 2007 à 10:39 +0000, François Ingelrest a écrit :
> Does this problem occurs only when you use tags for the title? (i.e., do
> you get the same result when putting a simple string as the title?).
No, it happens every time whatever you put in title part.

I tried these strings with same results :
<b>{title}</b> [{duration_str}]
{title}
title
Nothing is displayed, if in title part.

> Which distribution are you using, and what are the versions of
> "libnotify" and "python-notify"?

Mandriva Cooker 2008.1

libnotify-0.4.4-3mdv2008.0
libnotify1-0.4.4-3mdv2008.0

python-notify-0.1.1-1mdv2007.1
(python 2.5)

I verified on Proxad ftp mirror and there are no newer package.

> If you type these commands in a shell, what result do you get:
>
> notify-send "Title" "Body"
Both are displayed; "Title" is in bold and located on top of the
notification window.

> notify-send "</b>Title<b>" "Body"
Only Body is displayed.

> (you may have to install "libnotify-bin" to get the "notify-send"
> command).
On Mandriva, "notify-send" is located in libnotify rpm, shared libs are in libnotify1, headers are in libnotify1-devel.

By the way, I installed Decibel Audio Player as an rpm package
decibel-audio-player-0.06.3-1mdv2008.1.

Revision history for this message
Anonym25712 (anonym25712) wrote :

Libnotify automatically adds <b> ... </b> around the title, that's why the title is in bold by default. To allow the user to decide what should be in bold, DAP automatically adds </b> ... <b> around the user's title.

This works perfectly well on Ubuntu, and I don't get why this doesn't on your Mandriva. The version of both libnotify and python-notify are the same on Ubuntu, so one of these distributions must have made some changes to the standard libraries.

Revision history for this message
Anonym25712 (anonym25712) wrote :

Can you try these commands?

notify-send "<span weight=\"normal\">Title</span>" "Body"
notify-send "<span weight=\"normal\"><b>Title</b></span>" "Body"

Thanks.

Revision history for this message
Starcrasher (starcrasher1) wrote :

> Can you try these commands?

> notify-send "<span weight=\"normal\">Title</span>" "Body"
Both are displayed, both not in bold, "Title" seems to be in a larger
font.

> notify-send "<span weight=\"normal\"><b>Title</b></span>" "Body"
Both are displayed, "Title" is in bold, "Title" seems to be in a larger
font.

Revision history for this message
Anonym25712 (anonym25712) wrote :

Ok, so I'll switch to that method for the next release, thanks for your help!

Changed in decibel-audio-player:
assignee: nobody → athropos
status: New → Fix Committed
Revision history for this message
Starcrasher (starcrasher1) wrote :

Ok, I transmit to the package maintainer.
Thanks.

Revision history for this message
Anonym25712 (anonym25712) wrote :

See v0.07

Changed in decibel-audio-player:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.