Skip to content

Commit bebc39e

Browse files
committed
dbus notify timeout is ms
1 parent bb15a4e commit bebc39e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

wayvr/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ fn auto_run(args: Args, used_backend: &mut Option<XrBackend>) {
192192

193193
let instructions = format!("Could not connect to runtime.\n{instructions}");
194194

195-
let _ = DbusConnector::notify_send("WayVR", &instructions, 1, 0, 0, false);
195+
let _ = DbusConnector::notify_send("WayVR", &instructions, 1, 30000, 0, false);
196196

197197
#[cfg(not(any(feature = "openvr", feature = "openxr")))]
198198
compile_error!("No VR support! Enable either openvr or openxr features!");

wayvr/src/overlays/screen/pw.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ pub(super) fn select_pw_screen(
9595
task::Poll::Pending => {
9696
if Instant::now() >= print_at {
9797
log::info!("{instructions}");
98-
if let Ok(id) = DbusConnector::notify_send(instructions, "", 1, 60, 0, true)
98+
if let Ok(id) =
99+
DbusConnector::notify_send(instructions, "", 1, 30000, 0, true)
99100
{
100101
notify = Some(id);
101102
}

wayvr/src/subsystem/dbus/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl DbusConnector {
9494
summary: &str,
9595
body: &str,
9696
urgency: u8,
97-
timeout: i32,
97+
timeout_ms: i32,
9898
replaces_id: u32,
9999
transient: bool,
100100
) -> anyhow::Result<u32> {

0 commit comments

Comments
 (0)