chore: put systemd-homed extra support behind 'systemd' feature

This commit is contained in:
Nara Díaz Viñolas 2026-05-22 10:11:44 +02:00 • committed by Michael Murphy
parent 8ff96e94f7
commit b9587deadb
3 changed files with 26 additions and 10 deletions

View file

@ -71,7 +71,7 @@ struct GreeterProxy;
#[zbus::interface(name = "com.system76.CosmicGreeter")]
impl GreeterProxy {
async fn get_user_data(&mut self) -> Result<String, GreeterError> {
let user_filter = UserFilter::new().await?;
let user_filter = UserFilter::new().await;
// The pwd::Passwd method is unsafe (but not labelled as such) due to using global state (libc pwent functions).
// To prevent issues, this should only be called once in the entire process space at a time