diff --git a/asusd/src/ctrl_aura/manager.rs b/asusd/src/ctrl_aura/manager.rs index 54130edf..feeea021 100644 --- a/asusd/src/ctrl_aura/manager.rs +++ b/asusd/src/ctrl_aura/manager.rs @@ -5,7 +5,6 @@ // - If udev sees device removed then remove the zbus path use std::collections::HashSet; -use std::time::Duration; use log::{debug, error, info, warn}; use mio::{Events, Interest, Poll, Token}; @@ -14,7 +13,6 @@ use rog_aura::usb::AuraDevice; use rog_platform::hid_raw::HidRaw; use tokio::task::spawn_blocking; use udev::{Device, MonitorBuilder}; -// use zbus::fdo::ObjectManager; use zbus::object_server::SignalContext; use zbus::zvariant::{ObjectPath, OwnedObjectPath}; use zbus::Connection; diff --git a/config-traits/src/lib.rs b/config-traits/src/lib.rs index f34d1ab9..ff2d44a3 100644 --- a/config-traits/src/lib.rs +++ b/config-traits/src/lib.rs @@ -92,6 +92,7 @@ where .read(true) .write(true) .create(true) + .truncate(false) .open(self.file_path()) .unwrap_or_else(|e| panic!("Could not open {:?} {e}", self.file_path())) } diff --git a/rog-control-center/src/lib.rs b/rog-control-center/src/lib.rs index 2ecce54f..5217d7c0 100644 --- a/rog-control-center/src/lib.rs +++ b/rog-control-center/src/lib.rs @@ -89,7 +89,7 @@ pub fn on_tmp_dir_exists() -> Result { ipc_file.write_all(&[SHOW_GUI, 0])?; // tiny sleep to give the app a chance to respond sleep(Duration::from_millis(10)); - ipc_file.read(&mut buf).ok(); + ipc_file.read_exact(&mut buf).ok(); // First entry is the actual state if buf[0] == SHOWING_GUI { diff --git a/rog-control-center/translations/en/rog-control-center.po b/rog-control-center/translations/en/rog-control-center.po index 588c7c76..9ba481ec 100644 --- a/rog-control-center/translations/en/rog-control-center.po +++ b/rog-control-center/translations/en/rog-control-center.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-23 01:29+0000\n" +"POT-Creation-Date: 2024-04-03 03:12+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"