fix: compile without the logind feature

This commit is contained in:
r0chd 2026-09-09 02:24:24 +02:00
parent 499f13a634
commit 14cc125fcd
No known key found for this signature in database
2 changed files with 10 additions and 7 deletions

View file

@ -279,8 +279,6 @@ pub fn main() -> Result<(), Box<dyn Error>> {
sessions
};
let logind_available = cfg!(feature = "logind") && crate::logind::is_available();
let flags = Flags {
user_icons: user_datas
.iter_mut()
@ -290,7 +288,10 @@ pub fn main() -> Result<(), Box<dyn Error>> {
sessions,
greeter_config,
greeter_config_handler,
logind_available,
#[cfg(feature = "logind")]
logind_available: crate::logind::is_available(),
#[cfg(not(feature = "logind"))]
logind_available: false,
};
let settings = Settings::default().no_main_window(true);