This commit is contained in:
Luke D. Jones
2024-04-03 16:14:18 +13:00
parent 5178bf1d1a
commit 2f844ac151
4 changed files with 3 additions and 4 deletions

View File

@@ -5,7 +5,6 @@
// - If udev sees device removed then remove the zbus path // - If udev sees device removed then remove the zbus path
use std::collections::HashSet; use std::collections::HashSet;
use std::time::Duration;
use log::{debug, error, info, warn}; use log::{debug, error, info, warn};
use mio::{Events, Interest, Poll, Token}; use mio::{Events, Interest, Poll, Token};
@@ -14,7 +13,6 @@ use rog_aura::usb::AuraDevice;
use rog_platform::hid_raw::HidRaw; use rog_platform::hid_raw::HidRaw;
use tokio::task::spawn_blocking; use tokio::task::spawn_blocking;
use udev::{Device, MonitorBuilder}; use udev::{Device, MonitorBuilder};
// use zbus::fdo::ObjectManager;
use zbus::object_server::SignalContext; use zbus::object_server::SignalContext;
use zbus::zvariant::{ObjectPath, OwnedObjectPath}; use zbus::zvariant::{ObjectPath, OwnedObjectPath};
use zbus::Connection; use zbus::Connection;

View File

@@ -92,6 +92,7 @@ where
.read(true) .read(true)
.write(true) .write(true)
.create(true) .create(true)
.truncate(false)
.open(self.file_path()) .open(self.file_path())
.unwrap_or_else(|e| panic!("Could not open {:?} {e}", self.file_path())) .unwrap_or_else(|e| panic!("Could not open {:?} {e}", self.file_path()))
} }

View File

@@ -89,7 +89,7 @@ pub fn on_tmp_dir_exists() -> Result<TempDir, std::io::Error> {
ipc_file.write_all(&[SHOW_GUI, 0])?; ipc_file.write_all(&[SHOW_GUI, 0])?;
// tiny sleep to give the app a chance to respond // tiny sleep to give the app a chance to respond
sleep(Duration::from_millis(10)); sleep(Duration::from_millis(10));
ipc_file.read(&mut buf).ok(); ipc_file.read_exact(&mut buf).ok();
// First entry is the actual state // First entry is the actual state
if buf[0] == SHOWING_GUI { if buf[0] == SHOWING_GUI {

View File

@@ -2,7 +2,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"