From ecfeca65e05fda35bf48781a1a071815febbde47 Mon Sep 17 00:00:00 2001 From: Fabio Lenherr / DashieTM Date: Tue, 12 Dec 2023 23:04:57 +0100 Subject: [PATCH] fix: Fix type for daemon --- flatpak/cargo-sources.json | 10 +++++----- src/components/bluetooth/bluetooth_box.rs | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/flatpak/cargo-sources.json b/flatpak/cargo-sources.json index 6f0eb3e..eab3b17 100644 --- a/flatpak/cargo-sources.json +++ b/flatpak/cargo-sources.json @@ -1068,14 +1068,14 @@ { "type": "archive", "archive-type": "tar-gzip", - "url": "https://static.crates.io/crates/reset_daemon/reset_daemon-0.5.1.crate", - "sha256": "7326eed336797a56223ae33fc5dc67de29001678a933ba34c5e01c3bdf00be2b", - "dest": "cargo/vendor/reset_daemon-0.5.1" + "url": "https://static.crates.io/crates/reset_daemon/reset_daemon-0.5.2.crate", + "sha256": "ad5b58e2d2617a325b3c4188fb504b520d680089534acd3ea15dcd382cd3e739", + "dest": "cargo/vendor/reset_daemon-0.5.2" }, { "type": "inline", - "contents": "{\"package\": \"7326eed336797a56223ae33fc5dc67de29001678a933ba34c5e01c3bdf00be2b\", \"files\": {}}", - "dest": "cargo/vendor/reset_daemon-0.5.1", + "contents": "{\"package\": \"ad5b58e2d2617a325b3c4188fb504b520d680089534acd3ea15dcd382cd3e739\", \"files\": {}}", + "dest": "cargo/vendor/reset_daemon-0.5.2", "dest-filename": ".cargo-checksum.json" }, { diff --git a/src/components/bluetooth/bluetooth_box.rs b/src/components/bluetooth/bluetooth_box.rs index 8261bb5..bda36d2 100644 --- a/src/components/bluetooth/bluetooth_box.rs +++ b/src/components/bluetooth/bluetooth_box.rs @@ -210,24 +210,24 @@ pub fn start_bluetooth_listener(listeners: Arc, bluetooth_box: Arc = proxy.method_call("org.Xetibo.ReSet.Bluetooth", "StartBluetoothListener", ()); let device_added = BluetoothDeviceAdded::match_rule( Some(&"org.Xetibo.ReSet.Daemon".into()), - Some(&Path::from("/org/Xetibo/ReSet/Dameon")), + Some(&Path::from("/org/Xetibo/ReSet/Daemon")), ) .static_clone(); let device_removed = BluetoothDeviceRemoved::match_rule( Some(&"org.Xetibo.ReSet.Daemon".into()), - Some(&Path::from("/org/Xetibo/ReSet/Dameon")), + Some(&Path::from("/org/Xetibo/ReSet/Daemon")), ) .static_clone(); let device_changed = BluetoothDeviceChanged::match_rule( Some(&"org.Xetibo.ReSet.Daemon".into()), - Some(&Path::from("/org/Xetibo/ReSet/Dameon")), + Some(&Path::from("/org/Xetibo/ReSet/Daemon")), ) .static_clone(); let device_added_box = bluetooth_box.clone(); @@ -369,7 +369,7 @@ fn get_connected_devices() -> Vec { let conn = Connection::new_session().unwrap(); let proxy = conn.with_proxy( "org.Xetibo.ReSet.Daemon", - "/org/Xetibo/ReSet/Dameon", + "/org/Xetibo/ReSet/Daemon", Duration::from_millis(1000), ); let res: Result<(Vec,), Error> = proxy.method_call( @@ -387,7 +387,7 @@ fn get_bluetooth_adapters() -> Vec { let conn = Connection::new_session().unwrap(); let proxy = conn.with_proxy( "org.Xetibo.ReSet.Daemon", - "/org/Xetibo/ReSet/Dameon", + "/org/Xetibo/ReSet/Daemon", Duration::from_millis(1000), ); let res: Result<(Vec,), Error> = @@ -402,7 +402,7 @@ fn set_bluetooth_adapter(path: Path<'static>) { let conn = Connection::new_session().unwrap(); let proxy = conn.with_proxy( "org.Xetibo.ReSet.Daemon", - "/org/Xetibo/ReSet/Dameon", + "/org/Xetibo/ReSet/Daemon", Duration::from_millis(1000), ); let _: Result<(Vec,), Error> = @@ -413,7 +413,7 @@ fn set_bluetooth_adapter_visibility(path: Path<'static>, visible: bool) { let conn = Connection::new_session().unwrap(); let proxy = conn.with_proxy( "org.Xetibo.ReSet.Daemon", - "/org/Xetibo/ReSet/Dameon", + "/org/Xetibo/ReSet/Daemon", Duration::from_millis(1000), ); let _: Result<(bool,), Error> = proxy.method_call( @@ -427,7 +427,7 @@ fn set_bluetooth_adapter_pairability(path: Path<'static>, visible: bool) { let conn = Connection::new_session().unwrap(); let proxy = conn.with_proxy( "org.Xetibo.ReSet.Daemon", - "/org/Xetibo/ReSet/Dameon", + "/org/Xetibo/ReSet/Daemon", Duration::from_millis(1000), ); let _: Result<(bool,), Error> = proxy.method_call( @@ -441,7 +441,7 @@ fn set_adapter_enabled(path: Path<'static>, enabled: bool) { let conn = Connection::new_session().unwrap(); let proxy = conn.with_proxy( "org.Xetibo.ReSet.Daemon", - "/org/Xetibo/ReSet/Dameon", + "/org/Xetibo/ReSet/Daemon", Duration::from_millis(1000), ); let _: Result<(Vec,), Error> = proxy.method_call(