Skip to content

Instantly share code, notes, and snippets.

@wpiekutowski
Created September 14, 2010 08:52
Show Gist options
  • Save wpiekutowski/578757 to your computer and use it in GitHub Desktop.
Save wpiekutowski/578757 to your computer and use it in GitHub Desktop.
require 'RNotify'
notify_status = Notify.init('rstakeout')
raise 'Failed to initialize libnotify' unless notify_status
notification = Notify::Notification.new 'rstakeout', nil, nil, nil
# many times
notification.update "test", "message", nil
notification.timeout = 1
notification.urgency = 0
notification.show
# then
notification.close
Notify.uninit # this outputs the error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment