Sha256: ad9b94639de888c6ec3781ed0d3ab9f87270c02afaa82fcf542f0a6a6e7b9595
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
module TestNotifier module Notifier module Kdialog extend self def supported? RUBY_PLATFORM =~ /(linux|freebsd)/ && `which kdialog &> /dev/null` && $?.exitstatus == 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.5.rc.1 | lib/test_notifier/notifier/kdialog.rb |