dbus: Add power-daemon hotplug handling

This commit is contained in:
Victoria Brekenfeld 2024-02-07 13:58:44 +01:00 committed by Victoria Brekenfeld
parent 83ec68d383
commit d8c1087ebe
5 changed files with 158 additions and 2 deletions

View file

@ -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,