From c6cbce208267b239efc74fc573256e707edbd4f8 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 29 Jan 2022 14:31:42 +0100 Subject: [PATCH] Remove socket initialization from udev.rs Since `AnvilState::init` already initializes the socket, it shouldn't be necessary to duplicate this in the `udev.rs` backend. --- anvil/src/udev.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/anvil/src/udev.rs b/anvil/src/udev.rs index d61c392..03c24d0 100644 --- a/anvil/src/udev.rs +++ b/anvil/src/udev.rs @@ -107,14 +107,6 @@ pub fn run_udev(log: Logger) { let mut event_loop = EventLoop::try_new().unwrap(); let display = Rc::new(RefCell::new(Display::new())); - let name = display - .borrow_mut() - .add_socket_auto() - .unwrap() - .into_string() - .unwrap(); - info!(log, "Listening on wayland socket"; "name" => name.clone()); - ::std::env::set_var("WAYLAND_DISPLAY", name); /* * Initialize session */