Skip to content

Commit

Permalink
fix(daemon): rt dir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuklik committed Jun 25, 2024
1 parent b99825e commit db0bf1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion daemon/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ impl Daemon {
};
}
}
debug!("Created socket in {addr}");
Ok(())
}

Expand Down
8 changes: 6 additions & 2 deletions daemon/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ use std::time::Instant;

use cli::Cli;
use common::ipc::IpcSocket;
use common::ipc::Server;
use daemon::Daemon;
use log::debug;
use log::error;
use log::info;
use log::Level;
Expand All @@ -35,11 +37,13 @@ fn main() -> Result<(), Box<dyn Error>> {
// initialize the wayland connection, getting all the necessary globals
let initializer = wayland::globals::init(cli.format);

let listener = IpcSocket::server()?;

// use the initializer to create the Daemon, then drop it to free up the memory
let mut daemon = Daemon::new(initializer, !cli.no_cache)?;

// TODO: make socket part of daemon (beware of partial moves)
let listener = IpcSocket::server()?;
debug!("Created socket in {}", IpcSocket::<Server>::path());

if let Ok(true) = sd_notify::booted() {
if let Err(e) = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]) {
error!("Error sending status update to systemd: {e}");
Expand Down

0 comments on commit db0bf1b

Please sign in to comment.