From 4501ca5fe15d63cb3736300c3aa6ea934d35065c Mon Sep 17 00:00:00 2001 From: Drakulix Date: Sat, 27 Jan 2018 13:06:48 +0100 Subject: [PATCH] Fix weston-terminal spawn in example --- examples/udev.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/udev.rs b/examples/udev.rs index 7eb3d29..53deb7b 100644 --- a/examples/udev.rs +++ b/examples/udev.rs @@ -48,6 +48,7 @@ use smithay::wayland::seat::{KeyboardHandle, PointerHandle, Seat}; use smithay::wayland::shm::init_shm_global; use std::cell::RefCell; use std::collections::HashMap; +use std::env; use std::io::Error as IoError; use std::path::PathBuf; use std::process::Command; @@ -236,6 +237,7 @@ fn main() { */ let name = display.add_socket_auto().unwrap().into_string().unwrap(); println!("Listening on socket: {}", name); + env::set_var("WAYLAND_DISPLAY", name); let display = Rc::new(display); /*