mirror of https://github.com/wayvr-org/wayvr.git
dbus notify timeout is ms
This commit is contained in:
parent
bb15a4e867
commit
bebc39e766
|
|
@ -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 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")))]
|
#[cfg(not(any(feature = "openvr", feature = "openxr")))]
|
||||||
compile_error!("No VR support! Enable either openvr or openxr features!");
|
compile_error!("No VR support! Enable either openvr or openxr features!");
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,8 @@ pub(super) fn select_pw_screen(
|
||||||
task::Poll::Pending => {
|
task::Poll::Pending => {
|
||||||
if Instant::now() >= print_at {
|
if Instant::now() >= print_at {
|
||||||
log::info!("{instructions}");
|
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);
|
notify = Some(id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ impl DbusConnector {
|
||||||
summary: &str,
|
summary: &str,
|
||||||
body: &str,
|
body: &str,
|
||||||
urgency: u8,
|
urgency: u8,
|
||||||
timeout: i32,
|
timeout_ms: i32,
|
||||||
replaces_id: u32,
|
replaces_id: u32,
|
||||||
transient: bool,
|
transient: bool,
|
||||||
) -> anyhow::Result<u32> {
|
) -> anyhow::Result<u32> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue