Fix power_off in logind.rs

This commit is contained in:
Krzysztof Zduniak 2024-04-05 06:21:40 -04:00 committed by Jeremy Soller
parent d133e600da
commit f8da96e43e

View file

@ -4,7 +4,7 @@ use zbus::{Connection, Result};
pub async fn power_off() -> Result<()> {
let connection = Connection::system().await?;
let manager = ManagerProxy::new(&connection).await?;
manager.reboot(false).await
manager.power_off(false).await
}
pub async fn reboot() -> Result<()> {