[PATCH] Better error message when exec'ing Xwayland fails

Arnout Engelen arnouten at bzzt.net
Fri Jun 20 12:36:54 PDT 2014


---
 xwayland/launcher.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/xwayland/launcher.c b/xwayland/launcher.c
index 70703a4..bf1e17e 100644
--- a/xwayland/launcher.c
+++ b/xwayland/launcher.c
@@ -117,7 +117,11 @@ weston_xserver_handle_event(int listen_fd, uint32_t mask, void *data)
 			  "-wm", wm_fd,
 			  "-terminate",
 			  NULL) < 0)
-			weston_log("exec failed: %m\n");
+			weston_log("exec of '%s %s -rootless "
+                                   "-listen %s -listen %s -wm %s "
+                                   "-terminate' failed: %m\n",
+                                   xserver, display,
+                                   abstract_fd, unix_fd, wm_fd);
 	fail:
 		_exit(EXIT_FAILURE);
 
-- 
2.0.0



More information about the wayland-devel mailing list