Sha256: e24eeeb69beed9922d290a4b80b7b4a2c55b5b6657475f66bddae15d28e13e58
Contents?: true
Size: 358 Bytes
Versions: 6
Compression:
Stored size: 358 Bytes
Contents
module TestNotifier module Notifier module Kdialog extend self def supported? RUBY_PLATFORM =~ /(linux|freebsd)/ && `which kdialog` && $? == 0 end def notify(options) Thread.new do `kdialog --title #{options[:title]} --passivepopup \"#{options[:message]}\" 5` end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems