Skip to content

Commit

Permalink
Merge pull request #358 from mstoeckl/fix-wayl-sock
Browse files Browse the repository at this point in the history
Fix connecting to Wayland via WAYLAND_SOCKET
  • Loading branch information
LGFae authored Sep 7, 2024
2 parents 4562185 + 587ecdb commit 2408c0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/src/wayland/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ fn connect() -> OwnedFd {

let socket_addr =
rustix::net::getsockname(&fd).expect("failed to get wayland socket address");
if let SocketAddrAny::Unix(addr) = socket_addr {
rustix::net::connect_unix(&fd, &addr).expect("failed to connect to unix socket");
if let SocketAddrAny::Unix(_) = socket_addr {
fd
} else {
panic!("socket address {:?} is not a unix socket", socket_addr);
Expand Down

0 comments on commit 2408c0b

Please sign in to comment.