Re-add TUF keyboard support

This commit is contained in:
Luke D. Jones
2024-04-17 21:39:58 +12:00
parent df88ff1acb
commit f9dca2da5d
2 changed files with 23 additions and 1 deletions
+5
View File
@@ -46,6 +46,7 @@ impl AuraManager {
};
// detect all plugged in aura devices (eventually)
// only USB devices are detected for here
spawn_blocking(move || {
let mut monitor = MonitorBuilder::new()?.match_subsystem("hidraw")?.listen()?;
let mut poll = Poll::new()?;
@@ -164,6 +165,10 @@ pub(crate) fn dbus_path_for_dev(parent: &Device) -> Option<OwnedObjectPath> {
None
}
pub(crate) fn dbus_path_for_tuf() -> OwnedObjectPath {
ObjectPath::from_str_unchecked(&format!("{AURA_ZBUS_PATH}/tuf")).into()
}
async fn start_tasks(
mut zbus: CtrlAuraZbus,
connection: Connection,