feat: add systemd notify with feature
This commit is contained in:
parent
d32eae139d
commit
d8bfa0a1a3
3 changed files with 16 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue