Sha256: 33e0df223eb0726bac90abd74f6e28152eca66ad0fc4eafb431f000a835da864
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 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].to_s, "--passivepopup", options[:message].to_s, "5" ] Thread.new { system(*command) }.join end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notifier-0.5.2 | lib/notifier/kdialog.rb |
notifier-0.5.1 | lib/notifier/kdialog.rb |