dbus: Add power-daemon hotplug handling
This commit is contained in:
parent
83ec68d383
commit
d8c1087ebe
5 changed files with 158 additions and 2 deletions
|
|
@ -150,7 +150,6 @@ pub struct Common {
|
|||
|
||||
//pub output_conf: ConfigurationManager,
|
||||
pub shell: Shell,
|
||||
|
||||
seats: Vec<Seat<State>>,
|
||||
last_active_seat: Option<Seat<State>>,
|
||||
|
||||
|
|
@ -392,6 +391,10 @@ impl State {
|
|||
|
||||
let shell = Shell::new(&config, dh);
|
||||
|
||||
if let Err(err) = crate::dbus::init(&handle) {
|
||||
tracing::warn!(?err, "Failed to initialize dbus handlers");
|
||||
}
|
||||
|
||||
State {
|
||||
common: Common {
|
||||
config,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue