Sha256: 6b3963df9ac687f258b25e8b9d0dcb2ebf07dfe5f833840a5a04678b7b507175
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 Bytes
Contents
module TestNotifier 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_notifier-0.3.4 | lib/test_notifier/notifier/kdialog.rb |