Sha256: 413d04b3fb544c7b564516a7c8c217e327170edc868511899a0866cee7b76dd6
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notifier-0.1.1 | lib/notifier/kdialog.rb |
notifier-0.1.0 | lib/notifier/kdialog.rb |