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.
This commit is contained in:
Christian Duerr 2022-01-29 14:31:42 +01:00
parent ab89bda503
commit c6cbce2082
No known key found for this signature in database
GPG Key ID: 85CDAE3C164BA7B4
1 changed files with 0 additions and 8 deletions

View File

@ -107,14 +107,6 @@ pub fn run_udev(log: Logger) {
let mut event_loop = EventLoop::try_new().unwrap(); let mut event_loop = EventLoop::try_new().unwrap();
let display = Rc::new(RefCell::new(Display::new())); 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 * Initialize session
*/ */