feat: add systemd notify with feature

This commit is contained in:
Michael Yang 2024-07-06 17:24:33 +10:00 committed by Shawn Wallace
parent d32eae139d
commit d8bfa0a1a3
3 changed files with 16 additions and 0 deletions

View file

@ -158,6 +158,9 @@ pub fn main(data: impl RunData) -> Option<()> {
data.xwayland_ready(display);
server_state.set_x_connection(xstate.connection.clone());
server_state.atoms = Some(xstate.atoms.clone());
#[cfg(feature = "systemd")]
let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]);
}
if let Some(xstate) = &mut xstate {