Add ':transient => true' to default libnotify options

This is a new feature in libnotify causing transitions to vanish after
they've been displayed.
This commit is contained in:
Daniel Mack 2011-08-11 11:24:14 +02:00
parent 134a476f03
commit 3663687ad6

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