pynotify.set_timeout() ignores timeout

Bug #663726 reported by Dominik
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
notify-python (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

We have to display notifications longer than 10 seconds. But pynotify seems to ignore the timeout.

Here's my sample code:

#!/usr/bin/python
# -*- coding: utf-8 -*-

import pynotify
pynotify.init("Test")
n = pynotify.Notification("Test", "<b>Test</b>")
n.set_urgency(pynotify.URGENCY_NORMAL)
n.set_timeout(5000) # 60 seconds
n.show()

Revision history for this message
Dominik (domfi) wrote :

With this code the notification bubble is shown 10 seconds. The same with n.set_timeout(60000).

Revision history for this message
diego.guimaraes (diegobr-sistemas) wrote :

I had the same problem. set_timeout(60000), didn't work.
set_hint() also didn't work.
Tags html didn't work too, like <b>message</b>

I tried many things, and nothing.

Revision history for this message
Mike Gabriel (sunweaver) wrote :

Same here: set_timeout is ignored by pynotify...

Revision history for this message
Mike Gabriel (sunweaver) wrote :

... that is in Ubuntu lucid, 32bit...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in notify-python (Ubuntu):
status: New → Confirmed
Revision history for this message
Dominik (domfi) wrote : Re: [Bug 663726] Re: pynotify.set_timeout() ignores timeout

2010 ... Didn't even remember this bug... Good luck getting it fixed :-/ I don't need it fixed anymore.

Mit freundlichem Gruß
Dominik Fischer

Am 04.03.2012 um 22:51 schrieb Launchpad Bug Tracker <email address hidden>:

> Status changed to 'Confirmed' because the bug affects multiple users.
>
> ** Changed in: notify-python (Ubuntu)
> Status: New => Confirmed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/663726
>
> Title:
> pynotify.set_timeout() ignores timeout
>
> Status in “notify-python” package in Ubuntu:
> Confirmed
>
> Bug description:
> We have to display notifications longer than 10 seconds. But pynotify
> seems to ignore the timeout.
>
> Here's my sample code:
>
> #!/usr/bin/python
> # -*- coding: utf-8 -*-
>
> import pynotify
> pynotify.init("Test")
> n = pynotify.Notification("Test", "<b>Test</b>")
> n.set_urgency(pynotify.URGENCY_NORMAL)
> n.set_timeout(5000) # 60 seconds
> n.show()
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/notify-python/+bug/663726/+subscriptions

Revision history for this message
John Kuang (xiphosurus) wrote :

Still not fixed as of 13.04! Please fix this!

Revision history for this message
Barry Warsaw (barry) wrote :

AFAICT, Ubuntu and Debian have the latest upstream release.

http://www.galago-project.org/news/index.php

OTOH, it's not at all clear to me that this is still a viable project. According to the above page, notify-python 0.1.1 was released on October 08, 2006 and its bug tracker link is broken.

I'm going to mark this Launchpad bug as Won't Fix. I think there's little motivation and probably zero resources to fix this in Ubuntu only. OTOH, if someone comes up with a patch, please re-open the bug and I will review it.

Changed in notify-python (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
tatsu tatsu (tatsu) wrote :

you can set it to lower than ten seonds via NotifyOSD but not hicher, there's a hard cap somwhere else in ubuntu files.

Revision history for this message
Blair Houghton (bph) wrote :

Setting it lower than 10 seconds doesn't shorten the timeout either. But if you set it to 0 you get the info in a dialog box that persists until you dismiss it instead of a bubble that goes away in 10 seconds. (Currently running xenial.)

Revision history for this message
Blair Houghton (bph) wrote :

If you set it lower than 10 seconds it still remains onscreen for 10 seconds. Except if you set it to 0 it gives you a dialog box that remains onscreen until you dismiss it instead of the momentary notification. (Currently on xenial.)

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.