wayvr: dont die if wayvr.disp not writeable
This commit is contained in:
@@ -10,9 +10,8 @@ use smithay::{
|
|||||||
use crate::backend::wayvr::{ExternalProcessRequest, WayVRTask};
|
use crate::backend::wayvr::{ExternalProcessRequest, WayVRTask};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
ProcessWayVREnv,
|
|
||||||
comp::{self, ClientState},
|
comp::{self, ClientState},
|
||||||
display, process,
|
display, process, ProcessWayVREnv,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct WayVRClient {
|
pub struct WayVRClient {
|
||||||
@@ -247,7 +246,9 @@ fn create_wayland_listener() -> anyhow::Result<(super::WaylandEnv, wayland_serve
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let _ = export_display_number(env.display_num);
|
if let Err(e) = export_display_number(env.display_num) {
|
||||||
|
log::error!("Could not write wayvr.disp: {e:?}");
|
||||||
|
}
|
||||||
|
|
||||||
Ok((env, listener))
|
Ok((env, listener))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user