diff --git a/src/main.rs b/src/main.rs index 2be12cd5..cafa55bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,10 +48,12 @@ fn main() -> Result<()> { ); // init backend backend::init_backend_auto(&display.handle(), &mut event_loop, &mut state)?; + // potentially tell systemd we are setup now + if let state::BackendData::Kms(_) = &state.backend { + systemd::ready(&state); + } // potentially tell the session we are setup now session::setup_socket(event_loop.handle(), &state)?; - // potentially tell systemd we are setup now - systemd::ready(&state); let mut data = state::Data { display, state }; // run the event loop