blob: 82ec6b66b2e69a48f4b4e35e0ee19d2c05fcbd74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
}
}
}
|