notify-send does not notify real time


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting notify-send does not notify real time
# 1  
Old 02-16-2010
notify-send does not notify real time

Hi,
I am having a little trouble getting notify-send to work the way I would like it to.
I am using ubuntu - karmic koala 2.6.31-19-generic #56-Ubuntu SMP
So here's the problem
run the following commands one after the other.

Code:
notify-send -i info -t 100000 -- "Hi" "world" &
notify-send -i info -t 100000 -- "Bye" "world"

See what happened?
The first message pops up. But the second one takes a whole 10 seconds before it shows up. This is because i set -t to 10 sec. What I would like in an ideal world to happen is I see two balloon pop ups. So the messages appear right when they should.

I recall this used to work in earlier versions on ubuntu, I guess that was using dbus, instead of notify-send.

I hope someone comes up with a solution to this real soon.

Last edited by linuxpenguin; 02-16-2010 at 06:56 PM.. Reason: formatting...
# 2  
Old 02-27-2010
notify-send does not support the enqueue option, which is needed to tell dbus notification whether or not to enqueue the message or display it all at once. Also, the -t option in the commands you entered are for 100 seconds, as the -t is in milliseconds, but it doesn't matter anyway, as ubuntu has disabled the timeout option for its notification system. All of the messages sent from notify send get ~10 seconds.
# 3  
Old 03-01-2010
Thanks for your reply, although it sounds like you re-iterated the existing problems. I am wondering if there is a solution/work around/alternatives to notify-send. Can I use some dbus utility that does similar stuff without those shortcomings/bugs in notify-send? I upgraded to lucid-lynx, which is still in development, hoping that somebody bumps up this issue such that it works when 10.4 is finally released.
# 4  
Old 03-08-2010
Quote:
Originally Posted by linuxpenguin
Thanks for your reply, although it sounds like you re-iterated the existing problems. I am wondering if there is a solution/work around/alternatives to notify-send. Can I use some dbus utility that does similar stuff without those shortcomings/bugs in notify-send? I upgraded to lucid-lynx, which is still in development, hoping that somebody bumps up this issue such that it works when 10.4 is finally released.

Well, I don't know of any utility to do that, but it possible to access dbus directly, which is what the programmers generally do. I don't know how though, so I can't help there. Notify-send hasn't been updated in a while, but you can still try submitting feature requests to the ubuntu launchpad site in the hopes that they will patch it or directly to the authors site to try to get the enqueue option added.
As for the timeout not being supported in ubuntu, this is on purpose: https://bugs.launchpad.net/ubuntu/+s...sd/+bug/390508
Also, there is a patched notification system on that page, that can do timeouts, so you can at least use that to solve on problem.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Notify as soon as an error is encountered in a script

Hi, The script below works okay and emails me the log in the end once the script completes but what I'm trying to do is to also notify me via an email as soon as the script encounters any error whatsoever. cat test.list hdisk0 00a6351a2c832da1 rootvg ... (7 Replies)
Discussion started by: mbak
7 Replies

2. Shell Programming and Scripting

A notify-send Question --

Greetings. I've come across a bit of a problem with notify-send syntax; and wondered if anyone out there had found a solution in the woodpile somewhere :) Here's the snippet which is giving me trouble:notify-send 'Text to display' image_data 300, 300, , , , , /etc/image.pngOutput:Invalid... (0 Replies)
Discussion started by: LinQ
0 Replies

3. Shell Programming and Scripting

[linux] tail2notify - script interface between tail -f + grep and notify-send

This isn't exactly a question. Just thought I'd share something I just wrote and found useful. For those of you on modern linux boxen: you may be aware that there's a lovely little tool called notify-send that you can use to send notifications to the desktop. Any experienced shell-scripter could... (0 Replies)
Discussion started by: ryran
0 Replies

4. Shell Programming and Scripting

Cronjob to notify by mail

I am planning some tasks that I need send mails regularly to my team members. I think to use cronjob with script to do it. Two init files are prepared, I can change the format if you ask for. name.txt: Bill bill@xxx.com Peter peter@xxx.com James james@xxx.com Tasks_list.txt ... (4 Replies)
Discussion started by: newoz
4 Replies

5. UNIX for Dummies Questions & Answers

log send, sendrec, recv and notify system calls

Hi, I've a question about MINIX OS. 1 - I would like to log the messages that user or kernel process send to each other through the system call send, recv, sendrec and notify. Since MINIX is a microkernel OS, I suppose that the best way is to have an TCP socket, listening in INADDR_ANY... (0 Replies)
Discussion started by: pedrosacosta
0 Replies

6. UNIX for Dummies Questions & Answers

Notify Command.

Hi, I am using the NOTIFY command and I am getting the emails.. I tried MAILX and e-mail is being sent. I want to use NOTIFY to see if my jobs are completed or not. Am I missing something.. All your ideas are greatly appreciated.. Thanks Venky (2 Replies)
Discussion started by: venkyA
2 Replies

7. Post Here to Contact Site Administrators and Moderators

Notify of a new thread

Hi, I wish to be notified whenever there is a new thread posted on any of the forums or atleast the forums that I have registered to. Can this be done. How? I am sure there must be a way to do this, and I feel this is how the moderators must be doing. I know I may not be eligible enough to be... (5 Replies)
Discussion started by: linuxpenguin
5 Replies
Login or Register to Ask a Question