notify-send -t parameter advertised in man page but usually doesn't work

Bug #533631 reported by marcobra (Marco Braida)
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
libnotify (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Description: Ubuntu lucid (development branch)
Release: 10.04

libnotify-bin:
  Installed: 0.4.5-1ubuntu3
  Candidate: 0.4.5-1ubuntu3
  Version table:
 *** 0.4.5-1ubuntu3 0
        500 http://archive.ubuntu.com lucid/universe Packages
        100 /var/lib/dpkg/status

The parameter -t is not used by notify-send and the use of this good feature into a script is unusable, try this 60 sec message:

notify-send -t 60000 "pippo"

Doesn't work.

Also specifying a -t 0 timeout convert the notification to a question dialog window.

Also we have this reported bug https://bugs.launchpad.net/ubuntu/+source/libnotify/+bug/257135

Thank you

Tags: bitesize

Related branches

description: updated
Revision history for this message
A. Walton (awalton) wrote :

Notify-OSD doesn't support timed notifications, opting to instead display a dialog. This behavior is exactly what's expected. If you wish it to work, switch to notification-daemon or xfce4-notify or another daemon which supports it.

Changed in libnotify (Ubuntu):
status: New → Invalid
Revision history for this message
marcobra (Marco Braida) (marcobra) wrote : Re: notify-send unusable in app logic due the -t parameter the man and the help of notify-send -t parameter is invalid

Then the help of notify-send is buggy...

libnotify-bin:
  Installato: 0.4.5-1ubuntu3
  Candidato: 0.4.5-1ubuntu3
  Tabella versione:
 *** 0.4.5-1ubuntu3 0
        500 http://archive.ubuntu.com lucid/universe Packages
        100 /var/lib/dpkg/status
ubuntu@ubuntu:~$

------------------------------------------------

notify-send --help

Usage:
  notify-send [OPTION...] <SUMMARY> [BODY] - create a notification

Help Options:
  -?, --help Show help options

Application Options:
  -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).
  -t, --expire-time=TIME Specifies the timeout in milliseconds at which to expire the notification.
  -i, --icon=ICON[,ICON...] Specifies an icon filename or stock icon to display.
  -c, --category=TYPE[,TYPE...] Specifies the notification category.
  -h, --hint=TYPE:NAME:VALUE Specifies basic extra data to pass. Valid types are int, double, string and byte.
  -v, --version Version of the package.

Thank you

Changed in libnotify (Ubuntu):
status: Invalid → New
summary: - notify-send unusable in app logic due the -t parameter
+ notify-send unusable in app logic due the -t parameter the man and the
+ help of notify-send -t parameter is invalid
Changed in libnotify (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
lix (lix-lix) wrote :

It is quite annoying that the timeout option (-t) dies not work with notify-send, as messages remain on screen not disappearing and the notifier get un-useful when using it for quick, multiple notifications.

Further it is misleading if the option is described in the man page, but not working. - So please either fix it or remove it from the man page.

tags: added: bitesize
summary: - notify-send unusable in app logic due the -t parameter the man and the
- help of notify-send -t parameter is invalid
+ notify-send -t parameter advertised in man page but usually doesn't work
Changed in libnotify (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Matthew Paul Thomas (mpt)
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in libnotify (Ubuntu):
assignee: Matthew Paul Thomas (mpt) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libnotify - 0.7.6-2svn1

---------------
libnotify (0.7.6-2svn1) vivid; urgency=medium

  [ Dmitry Shachnev ]
  * Add missing xauth dependency for autopkgtest.

  [ Sebastien Bacher ]
  * debian/notify-end.1: "Makes clear that -t/--expire-time is ignored
    by Notify OSD and GNOME Shell", thanks Matthew Paul Thomas (LP: #533631)
 -- Martin Pitt <email address hidden> Mon, 16 Feb 2015 11:03:30 +0100

Changed in libnotify (Ubuntu):
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.