feat(startup): get environment

This commit is contained in:
Nova
2023-04-24 09:53:20 -04:00
parent 09c6c010e2
commit 9d220ec235
3 changed files with 40 additions and 5 deletions

View File

@@ -31,6 +31,8 @@ use tokio::{
};
use tracing::{debug, debug_span, info, instrument};
pub static WAYLAND_DISPLAY: OnceCell<String> = OnceCell::new();
pub static SERIAL_COUNTER: CounterU32 = CounterU32::new(0);
struct EGLRawHandles {
@@ -85,6 +87,9 @@ impl Wayland {
let socket = ListeningSocket::bind_auto("wayland", 0..33)?;
let socket_name = socket.socket_name().unwrap().to_str().unwrap().to_string();
WAYLAND_DISPLAY
.set(socket_name.clone())
.expect("seriously message nova this time they screwed up big time");
info!(socket_name, "Wayland active");
let join_handle =