blob: 5bb1a2694b9a4bd96a52cfed419bc9d47e92e004 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use log::*;
pub fn init() {
libnotify::init("mumd").unwrap();
}
pub fn send(msg: String) -> bool {
match libnotify::Notification::new(
"mumd",
Some(msg.as_str()),
None,
).show() {
Ok(_) => { true }
Err(_) => {
debug!("Unable to send notification");
false
}
}
}
|