gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:28:36 24 4
gpt4 key购买 nike

我正在使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com