我使用 ubuntu 11.10 和 gnome-shell 3。我使用 Guard 来通知测试通过或失败。
当我的绿色测试通知在几秒钟后自动隐藏时,但是当我的测试出现错误时,我必须单击错误消息来隐藏,因为它们覆盖了所有其他通知。
如何设置错误自动隐藏?
最佳答案
我正在使用 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/