module Notifier module Kdialog extend self def supported? RUBY_PLATFORM =~ /(linux|freebsd)/ && `which kdialog > /dev/null` && $? == 0 end def notify(options) Thread.new do `kdialog --title #{options[:title]} --passivepopup \"#{options[:message]}\" 5` end end end end