dbus notify timeout is ms

This commit is contained in:
galister 2026-03-16 13:37:50 +09:00
parent bb15a4e867
commit bebc39e766
3 changed files with 4 additions and 3 deletions

View File

@ -192,7 +192,7 @@ fn auto_run(args: Args, used_backend: &mut Option<XrBackend>) {
let instructions = format!("Could not connect to runtime.\n{instructions}");
let _ = DbusConnector::notify_send("WayVR", &instructions, 1, 0, 0, false);
let _ = DbusConnector::notify_send("WayVR", &instructions, 1, 30000, 0, false);
#[cfg(not(any(feature = "openvr", feature = "openxr")))]
compile_error!("No VR support! Enable either openvr or openxr features!");

View File

@ -95,7 +95,8 @@ pub(super) fn select_pw_screen(
task::Poll::Pending => {
if Instant::now() >= print_at {
log::info!("{instructions}");
if let Ok(id) = DbusConnector::notify_send(instructions, "", 1, 60, 0, true)
if let Ok(id) =
DbusConnector::notify_send(instructions, "", 1, 30000, 0, true)
{
notify = Some(id);
}

View File

@ -94,7 +94,7 @@ impl DbusConnector {
summary: &str,
body: &str,
urgency: u8,
timeout: i32,
timeout_ms: i32,
replaces_id: u32,
transient: bool,
) -> anyhow::Result<u32> {