lib/notifier/kdialog.rb in notifier-0.2.0 vs lib/notifier/kdialog.rb in notifier-0.2.1
- old
+ new
@@ -1,10 +1,10 @@
module Notifier
module Kdialog
extend self
def supported?
- RUBY_PLATFORM =~ /(linux|freebsd)/ && `which kdialog > /dev/null` && $? == 0
+ Notifier.os?(/(linux|freebsd)/) && `which kdialog > /dev/null` && $? == 0
end
def notify(options)
command = [
"kdialog",