lib/test_notifier/notifier/knotify.rb in test_notifier-0.3.4 vs lib/test_notifier/notifier/knotify.rb in test_notifier-0.3.5.rc.1

- old
+ new

@@ -2,10 +2,10 @@ module Notifier module Knotify extend self def supported? - RUBY_PLATFORM =~ /(linux|freebsd)/ && `ps -Al | grep dcop` && $? == 0 + RUBY_PLATFORM =~ /(linux|freebsd)/ && `ps -Al | grep dcop` && $?.exitstatus == 0 end def notify(options) Thread.new do `dcop knotify default notify eventname \'#{options[:title]}\' \'#{options[:message]}\' '' '' 16 2`