lib/notifier/knotify.rb in notifier-0.2.0 vs lib/notifier/knotify.rb in notifier-0.2.1

- old
+ new

@@ -1,10 +1,10 @@ module Notifier module Knotify extend self def supported? - RUBY_PLATFORM =~ /(linux|freebsd)/ && `ps -Al | grep dcop` && $? == 0 + Notifier.os?(/(linux|freebsd)/) && `ps -Al | grep dcop` && $? == 0 end def notify(options) command = [ "dcop", "knotify", "default", "notify", "eventname",