Merge pull request #115 from zonque/master

[Linux] Add ':transient => true' to default libnotify options (make the notices vanish after a few seconds).
This commit is contained in:
Rémy Coutable 2011-08-11 03:02:33 -07:00
commit a58e5d8fa5

View File

@ -51,7 +51,7 @@ module Guard
def self.notify_linux(title, message, image, options)
require_libnotify # need for guard-rspec formatter that is called out of guard scope
default_options = { :body => message, :summary => title, :icon_path => image_path(image) }
default_options = { :body => message, :summary => title, :icon_path => image_path(image), :transient => true }
Libnotify.show default_options.merge(options) if enabled?
end