Skip to content

Commit

Permalink
fix socket naming
Browse files Browse the repository at this point in the history
  • Loading branch information
LGFae committed Aug 8, 2024
1 parent 3eb6870 commit 4851c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/ipc/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 52,13 @@ impl<T> IpcSocket<T> {
break;
}
}
format!("{}.sock", &wayland_socket[i..])
(wayland_socket[i..]).to_string()
} else {
eprintln!("WARNING: WAYLAND_DISPLAY variable not set. Defaulting to wayland-0");
"wayland-0.sock".to_string()
};

format!("{runtime}/swww-{display}.socket")
format!("{runtime}/swww-{display}.sock")
}

/// Retreives path to socket file
Expand Down

0 comments on commit 4851c9b

Please sign in to comment.