Sha256: 00729d7e16d2306760610e58ea6732196958cb35f8f9c3da1bc5806d8a3c08d5

Contents?: true

Size: 379 Bytes

Versions: 18

Compression:

Stored size: 379 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "dbus"

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

d = DBus::SessionBus.instance
o = d["org.freedesktop.Notifications"]["/org/freedesktop/Notifications"]

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruby-dbus-0.24.0 examples/utils/notify.rb
ruby-dbus-0.23.1 examples/utils/notify.rb
ruby-dbus-0.23.0.beta2 examples/utils/notify.rb
ruby-dbus-0.23.0.beta1 examples/utils/notify.rb
ruby-dbus-0.22.1 examples/utils/notify.rb
ruby-dbus-0.22.0 examples/utils/notify.rb
ruby-dbus-0.21.0 examples/utils/notify.rb
ruby-dbus-0.20.0 examples/utils/notify.rb
ruby-dbus-0.19.0 examples/utils/notify.rb
ruby-dbus-0.18.1 examples/utils/notify.rb
ruby-dbus-0.18.0.beta8 examples/utils/notify.rb
ruby-dbus-0.18.0.beta7 examples/utils/notify.rb
ruby-dbus-0.18.0.beta6 examples/utils/notify.rb
ruby-dbus-0.18.0.beta5 examples/utils/notify.rb
ruby-dbus-0.18.0.beta4 examples/utils/notify.rb
ruby-dbus-0.18.0.beta3 examples/utils/notify.rb
ruby-dbus-0.18.0.beta2 examples/utils/notify.rb
ruby-dbus-0.18.0.beta1 examples/utils/notify.rb