Unable to lower notification's expiry time than ten seconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Debian |
Fix Released
|
Unknown
|
|||
notify-osd (Ubuntu) |
Invalid
|
Wishlist
|
Mirco Müller |
Bug Description
I want to create customised notifications to be shown by "notify-osd", using, for example, Python's "pynotify" module or the "notify-send" program.
I've noticed that the default expiration time of "notify-osd" is 10 seconds.
Wanting notifications that last shorter, I tried to set lower expire-times and urgency-levels. But whatever expire-times (100ms, 1sec, 5sec) or urgency-levels (low, normal) I specify are all ignored, and the notification goes on notifyin' for 10 seconds.
example usages that don't work as expected:
--- with "pynotify":
n = pynotify.
n.set_urgency(
n.set_timeout(1000)
n.show()
--- with "notify-send":
# notify-send -u low -t 1000 "This is a short notice"
* I'm running debian testing (amd64), and using software packaged for debian.
used software and versions:
- notify-osd 0.9.18-1
- libnotify1 0.4.5-1
- libnotify-bin 0.4.5-1 (notify-send)
- python-notify 0.1.1-2+b1 (pynotify)
- openbox 3.4.7.2-5 (window manager)
description: | updated |
Changed in notify-osd: | |
status: | New → Won't Fix |
importance: | Undecided → Wishlist |
Changed in debian: | |
status: | Unknown → New |
Changed in debian: | |
status: | New → Fix Released |
affects: | notify-osd → notify-osd (Ubuntu) |
Bin Joo, it is part of the design of notify-osd to not allow external definition of timeouts for notifications (to protect the user from notification-spam). You can read more about this here: https:/ /wiki.ubuntu. com/NotifyOSD.
In addition to that following the development guidelines of the notification-spec, http:// www.galago- project. org/specs/ notification/ 0.9/index. html, you should check a notification servers capabilities using the GetCapabilities call and only use features based on the reply you get. Example code (C, C#, Python) for dealing with notify-osd's capabilities you can find in the examples folder of notify-osd trunk (bzr branch lp:notify-osd).
Some parts of the implicit timing set forth by a notifications urgency are not yet implemented in notify-osd.