# File lib/autotest/notify.rb, line 2 def self.notify(title, message, priority='critical') icon = if priority == 'critical' 'dialog-error' else 'dialog-information' end system "notify-send -u #{priority} -t 10000 -i #{icon} '#{title}' '#{message.inspect}'" end