rust-libnotify/examples/show.rs

8 lines
189 B
Rust

extern crate libnotify;
fn main() {
let notify = libnotify::Context::new("hello").unwrap();
let n = notify.new_notification("Hello, ", "World!").unwrap();
n.show().unwrap();
}