[PATCH 2/2] compositor: Use libwayland to find a good default socket name for us

Jasper St. Pierre jstpierre at mecheye.net
Wed May 7 06:07:27 PDT 2014


---
 src/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index 120818f..85a75bf 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -4306,7 +4306,7 @@ int main(int argc, char *argv[])
 		wl_client_add_destroy_listener(primary_client,
 					       &primary_client_destroyed);
 	} else {
-		if (wl_display_add_socket(display, socket_name)) {
+		if (wl_display_add_socket(display, NULL)) {
 			weston_log("fatal: failed to add socket: %m\n");
 			ret = EXIT_FAILURE;
 			goto out;
-- 
1.9.0



More information about the wayland-devel mailing list