2010-07-22 81 views
5

有谁知道我可以通过通知发送多个弹出窗口一次出现在屏幕上。堆栈多个libnotify弹出

有了:

$ notify-send 'Message One' 'Body One' & notify-send 'Message Two' 'Body Two' & notify-send 'Message Three' 'Body Three' 

每一个等待队列中被显示之前到期之前的弹出窗口中,我试图让所有三尽快向下级联屏幕。

男子说:

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. 

      Help options: 

     -?, --help 
       Show this help message 

     -h, --hint=TYPE:NAME:VALUE 
       Specifies basic extra data to pass. Valid types are int, double, string and byte. 

的紧急性设定关键没什么区别。

TIA

+0

我得到在同一时间的所有三个通知。 – 2010-07-22 00:53:26

+0

真的!?只是尝试在我的Ubuntu系统上,并依次一个接一个。 – 2010-07-22 14:41:52

+0

是的,在Ubuntu 9.04系统上。 – 2010-07-22 14:59:54

回答

8

我知道这是一个老问题,但我在Google搜索相关内容时遇到了这个问题,所以我会发布一个答案。

就像tlvince说的那样,这是您的通知守护进程的错误,您可能正在运行Canonical的notify-osd。用Gnome的通知守护进程替换它,你会得到你想要的行为。

这些页面可能会有所帮助:

http://www.webupd8.org/2011/05/how-to-use-standard-gnome-notification.html

http://ubuntuforums.org/showthread.php?t=1663840

+0

就是这样,非常感谢Vitor,他们看起来有点薄荷,但工作得更好。 – 2011-07-18 21:25:07

+0

顺便说一句,如果运行gnome-shell,它在屏幕底部有自己的通知面板,所以我觉得禁用notify-osd和gnome的旧通知系统很有用:http://www.killertechtips.com/ 2009/4月26日/禁用状态通知功能于ubuntu的-904-轻快-鹿角兔/ – 2011-07-28 10:00:49

2

我相信这是你正在运行为的行为应该是什么样的通知守护的责任。例如,在xfce4-notifyd中,所有三个通知都一次显示,彼此重叠(因为它不支持堆栈)。

自从运行Ubuntu 9.04以来,您的通知守护程序很可能是notifyOSD。试着看看它的文档。

+0

谢谢。 'xfce4-notifyd-config'为我工作 – Lnux 2016-03-04 10:57:59