Sha256: fc5cd0883841ece3d290bc12f4ac5667aeba7e91da05789af0798160c645f941
Contents?: true
Size: 369 Bytes
Versions: 4
Compression:
Stored size: 369 Bytes
Contents
module Notifier module Kdialog extend self def supported? Notifier.os?(/(linux|freebsd)/) && `which kdialog > /dev/null` && $? == 0 end def notify(options) command = [ "kdialog", "--title", options[:title], "--passivepopup", options[:message], "5" ] Thread.new { system(*command) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
notifier-0.5.0 | lib/notifier/kdialog.rb |
notifier-0.4.1 | lib/notifier/kdialog.rb |
notifier-0.4.0 | lib/notifier/kdialog.rb |
notifier-0.2.1 | lib/notifier/kdialog.rb |