main: Only handle systemd on the kms backend
This commit is contained in:
parent
14fd613ed1
commit
fe6329838e
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue