Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Maybe I'm doing something wrong, but shouldn't the commands (run separately)

notify-send -t 1 "test"
notify-send -t 1000 "test"
notify-send -t 10000 "test"

Have different timeouts? The first being nearly instantaneous, the second one taking 1 sec and the third 100 seconds. In all cases it seems to take about six seconds.

Is there a way around behaviour? As the developers label this as a "feature" instead of a bug, I would like some alternatives...

share|improve this question
yes they do I confirmed – Ringtail Mar 7 '12 at 21:43
For me it works as expected using XFCE4. – Grumbel Mar 7 '12 at 22:45
@BlueXrider you see the same problem as I do? If so, what version are you using? – Hooked Mar 8 '12 at 15:29
I confirmed the test code is working correctly. I get the time outs as directed. – Ringtail Mar 8 '12 at 16:12
Alternatively you can use notify-send "Text Here" ; sleep 3 ; killall notify-osd (where sleep 3 is example of expiration (actually killing) after 3 seconds)! – Pandya Jan 13 '15 at 9:00
up vote 33 down vote accepted

This is a known bug:

(It is considered a 'design decision' by the maintainer.)

share|improve this answer
This is not really a bug. It's a design decision. – Eren Tantekin Jun 25 '12 at 21:12
A wrong design decision can be a bug. – Boris Bukh Jun 29 '12 at 21:42
When software claims to do one thing while it does another thing, it is a bug. If the developers don't want us to consider it as bug, then don't claim that it acts like it doesn't. – hakermania Sep 24 '12 at 15:50
The etymology of “bug” is something creeping around that you didn't know existed. To call a design decision a bug doesn't even make sense. It's intended behavior. It's just a bad design. – Christopher Done Oct 31 '14 at 16:11
That's not a feature. That's a bug! When you provide a a lever to turn on the windscreen wipers and it doesn't work, then it's broken. – Matt H Mar 16 at 20:48

As mentioned in one of the posts above, there is a design decision to disallow this feature. Fortunately for you, other people disagree as well and have set up a PPA and you can reverse this decision for your system as well.

To solve your problem just:

sudo add-apt-repository ppa:leolik/leolik 
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libnotify-bin
pkill notify-osd


To add even more features to send-notify then you currently have:

sudo add-apt-repository ppa:amandeepgrewal/notifyosdconfig
sudo apt-get update
sudo apt-get install notifyosdconfig

For more information on the solution above, read this article:

Configurable Notification Bubbles for Ubuntu

share|improve this answer
@hooked: change acceptance??? – Fabby Dec 24 '15 at 19:47

This was an intentionally implemented contravention of established conventions without disqualification in the host terminal environment. ie. notify-send should no longer exist since it compromises the well-established expected and documented functionality, so instead, a new command notify-graffiti should now exist - What???? Wait a second ... all those scripts that use the "conventional" command name spelling will be compromised!?! by changing the convention of how the command name is spelled?!?! - hmmm This philosophy is exceptionally, paradoxically hypocritical as espoused by the Unity desktop terminal interface.

It can't be done both ways - preserving some conventions ie. the name of a command and yet not others, the functionality of a command as documented. If the functionality is to be compromised then so too should the command name so as to maintain integrity, conventionality, consistency, etc. of the user "experience", or is that user "frustration", "annoyance", "irritation", ...


notify-send ignores timeout?

share|improve this answer
The "Non-expiring_notifications" and "Notification | Ubuntu App Developer" links are broken (or rather the web page they refer to is). – Keith Thompson Dec 17 '15 at 1:17
notify-send --expire-time=30000 "test"

show the notification 30s on Ubuntu 14.04.

notify-send --expire-time=60000 "test"

show it 1min.

share|improve this answer
You did read the other answers and comments, right? – saiarcot895 Jul 1 '14 at 14:21
Not all, why ? These commands are working well, no ? – Guillaume Jul 1 '14 at 14:37
Ah ok.. for 5 min, it's don't work any more :( – Guillaume Jul 1 '14 at 14:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.