aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/main.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-10-29 14:54:11 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-10-29 21:27:26 +0100
commitbddf2324b1fd1c440127432cbd93ac64afc7ca85 (patch)
tree8898c591b5a5bcc7ffede8fe985f3003592514f8 /mumd/src/main.rs
parent8cd74edc6079d26746cd07838c99d3b60228b87f (diff)
downloadmum-bddf2324b1fd1c440127432cbd93ac64afc7ca85.tar.gz
refactor and dont panic without x-server
Diffstat (limited to 'mumd/src/main.rs')
-rw-r--r--mumd/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs
index 79e44a2..37ff0dd 100644
--- a/mumd/src/main.rs
+++ b/mumd/src/main.rs
@@ -1,6 +1,7 @@
mod audio;
mod command;
mod network;
+mod notify;
mod state;
use crate::network::ConnectionInfo;
@@ -22,7 +23,7 @@ use tokio::task::spawn_blocking;
#[tokio::main]
async fn main() {
setup_logger(std::io::stderr(), true);
- libnotify::init("mumd").unwrap();
+ notify::init();
// Oneshot channel for setting UDP CryptState from control task
// For simplicity we don't deal with re-syncing, real applications would have to.