Fix weston-terminal spawn in example

This commit is contained in:
Drakulix 2018-01-27 13:06:48 +01:00
parent 310bc94a20
commit 4501ca5fe1
1 changed files with 2 additions and 0 deletions

View File

@ -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);
/*