Compare commits
2 Commits
5766c7d627
...
8e66dc234e
Author | SHA1 | Date | |
---|---|---|---|
8e66dc234e | |||
2239788f86 |
@ -92,8 +92,5 @@ async fn do_bscreensaver_command(command: BCommand) -> anyhow::Result<()> {
|
||||
|
||||
async fn register_sleep_lock<'a>(manager_proxy: &ManagerProxy<'a>) -> anyhow::Result<zbus::zvariant::OwnedFd> {
|
||||
debug!("Registering sleep lock");
|
||||
// ManagerProxy uses RawFd for the return value, which rust's type system thinks is an i32,
|
||||
// which means the generated proxy uses the wrong dbus type signature. So instead, use a raw
|
||||
// Proxy instance and do it all ourselves.
|
||||
Ok(manager_proxy.inhibit(InhibitType::Sleep, "bscreensaver", "blank before sleep", "delay").await?)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user