ubuntu - 如何在 gnome shell 的 libnotify 中自动隐藏错误消息?

标签 ubuntu gnome-3 gnome-shell libnotify

我使用 ubuntu 11.10 和 gnome-shell 3。我使用 Guard 来通知测试通过或失败。

当我的绿色测试通知在几秒钟后自动隐藏时,但是当我的测试出现错误时,我必须单击错误消息来隐藏,因为它们覆盖了所有其他通知。

如何设置错误自动隐藏?

enter image description here

最佳答案

我正在使用 Arch Linux。以下内容对我有用:

在 Gemfile 上添加:

group :development do
  gem 'libnotify'
end

在“guard :tests do”内添加守卫文件:

 notification :libnotify, :timeout => 1, :transient => true, :append => false, :urgency => :low

再次运行bundle install,重新启动guard,就可以了。

也许 gnome 3.4 不会隐藏重要通知。

关于ubuntu - 如何在 gnome shell 的 libnotify 中自动隐藏错误消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9569371/

相关文章:

java - tomcat无法在ubuntu中加载我的webapp

java - PHP shell_exec() 不会执行 screen 命令来运行 .jar 文件

python - 使用 GObjects 发送通知

ubuntu - 我可以更改 Gnome 3.10 工作区网格吗?

python - 类型错误 : unsupported operand type(s) for @: 'numpy.ndarray' and 'Tensor'

docker运行nginx :latest hangs indefinitely

glade - 如何在 Glade 3.20 中使用 GtkHeaderBar?

python - 在 tkinter 中分组窗口

linux - CentOS 7 如何从命令行停止/启动 Gnome 桌面

ubuntu - 如何将 gnome 主题的标题栏更改为黑色