Sha256: 911f8196fde001009283ec3c2b46c8d55c525e9d83ba877914a2385c1b5f324c

Contents?: true

Size: 270 Bytes

Versions: 2

Compression:

Stored size: 270 Bytes

Contents

module Notify
  if which('kdialog')
    def self.notify(title, message, option = {})
      iconargs = option.key?(:icon) ? ["--icon", option[:icon]] : ["",""]
      system 'kdialog', '--passivepopup', message, '--title',title, iconargs[0], iconargs[1]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notify-0.5.2 lib/notify/kdialog.rb
notify-0.5.1 lib/notify/kdialog.rb