Created
September 12, 2008 05:06
-
-
Save jugyo/10379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'RNotify' | |
def rnotify(title, message, timeout_sec = 5) | |
Notify.init('rnotify') | |
test = Notify::Notification.new( "Test 1", "This is a test", nil, nil ) | |
test.timeout= timeout_sec * 1000 | |
test.show | |
sleep(timeout_sec) | |
test.close | |
Notify.uninit | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment