有人知道如何通过notify-send让多个弹出窗口同时出现在屏幕上吗?
通过以下方式:
$ 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.将紧急度设置为critical不会有任何区别。
提亚
发布于 2011-07-12 22:14:12
我知道这是一个老问题,但我在谷歌搜索相关内容时遇到了这个问题,所以无论如何我都会发布一个答案。
就像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
发布于 2010-08-06 20:47:59
我相信这是你正在运行的通知守护进程的责任,关于行为应该是什么。例如,在xfce4-notifyd中,所有三个通知一次显示,彼此重叠(因为它不支持堆叠)。
由于您运行的是Ubuntu9.04,因此您的通知守护进程很可能是notifyOSD。试着浏览一下它的文档。
https://stackoverflow.com/questions/3304831
复制相似问题