From fe6329838e821eba9442d66f624ba73676b02c96 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 11 Jul 2022 22:34:34 +0200 Subject: [PATCH] main: Only handle systemd on the kms backend --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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