Fix power_off in logind.rs
This commit is contained in:
parent
d133e600da
commit
f8da96e43e
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ use zbus::{Connection, Result};
|
||||||
pub async fn power_off() -> Result<()> {
|
pub async fn power_off() -> Result<()> {
|
||||||
let connection = Connection::system().await?;
|
let connection = Connection::system().await?;
|
||||||
let manager = ManagerProxy::new(&connection).await?;
|
let manager = ManagerProxy::new(&connection).await?;
|
||||||
manager.reboot(false).await
|
manager.power_off(false).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn reboot() -> Result<()> {
|
pub async fn reboot() -> Result<()> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue