Sha256: e9ba2ae3f4f1f93d288e255ac39cc6f113ec8be43d1179ed8970cf9d1e0bc4b3

Contents?: true

Size: 374 Bytes

Versions: 6

Compression:

Stored size: 374 Bytes

Contents

#!/usr/bin/ruby

require 'dbus'

if ARGV.size < 2
  puts "Usage:"
  puts "notify.rb \"title\" \"body\""
  exit
end

d = DBus::SessionBus.instance
o = d.service("org.freedesktop.Notifications").object("/org/freedesktop/Notifications")
o.introspect

i = o["org.freedesktop.Notifications"]

i.Notify('notify.rb', 0, 'info', ARGV[0], ARGV[1], [], {}, 2000) do |ret, param|
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
pangdudu-ruby-dbus-0.2.1 examples/utils/notify.rb
pangdudu-ruby-dbus-0.2.2 examples/utils/notify.rb
pangdudu-ruby-dbus-0.2.3 examples/utils/notify.rb
sdague-ruby-dbus-0.2.1.1 examples/utils/notify.rb
sdague-ruby-dbus-0.2.1 examples/utils/notify.rb
yong-ruby-dbus-0.2.1 examples/utils/notify.rb