dbus: Take lid-inhibitor-locks on systemd systems
This commit is contained in:
parent
8648d4450e
commit
f2fc1e9480
5 changed files with 70 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ use calloop::{InsertError, LoopHandle, RegistrationToken};
|
|||
use std::collections::HashMap;
|
||||
use zbus::blocking::{fdo::DBusProxy, Connection};
|
||||
|
||||
#[cfg(feature = "systemd")]
|
||||
pub mod logind;
|
||||
mod power;
|
||||
|
||||
pub fn init(evlh: &LoopHandle<'static, State>) -> Result<Vec<RegistrationToken>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue