Merge pull request #81 from pop-os/systemd-feature_jammy

Add default `systemd` feature flag to enable systemd integration
This commit is contained in:
Victoria Brekenfeld 2023-02-28 12:19:47 +01:00 committed by GitHub
commit b1c7f68b6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -21,6 +21,7 @@ mod logger;
pub mod session;
pub mod shell;
pub mod state;
#[cfg(feature = "systemd")]
pub mod systemd;
pub mod utils;
pub mod wayland;
@ -46,6 +47,7 @@ fn main() -> Result<()> {
// init backend
backend::init_backend_auto(&display.handle(), &mut event_loop, &mut state)?;
// potentially tell systemd we are setup now
#[cfg(feature = "systemd")]
if let state::BackendData::Kms(_) = &state.backend {
systemd::ready(&state);
}