rust-libnotify/examples/show.rs
2015-03-08 17:14:52 +01:00

10 lines
311 B
Rust

extern crate libnotify;
fn main() {
let notify = libnotify::Context::new("hello").unwrap();
let n = notify.new_notification("This is the summary.",
Some("This is the optional body text."),
None).unwrap();
n.show().unwrap();
}