2015-03-07 12:55:19 +00:00
|
|
|
extern crate libnotify;
|
|
|
|
|
|
|
|
fn main() {
|
2015-03-07 13:21:17 +00:00
|
|
|
let notify = libnotify::Context::new("hello").unwrap();
|
2015-03-08 16:14:52 +00:00
|
|
|
let n = notify.new_notification("This is the summary.",
|
|
|
|
Some("This is the optional body text."),
|
|
|
|
None).unwrap();
|
2015-03-07 12:55:19 +00:00
|
|
|
n.show().unwrap();
|
|
|
|
}
|