[PATCH weston 1/2] compositor-drm, compositor-fbdev: stop suggesting root

Pekka Paalanen ppaalanen at gmail.com
Tue Oct 31 09:53:14 UTC 2017


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Stop suggesting to run Weston as root, it is only meant for debugging.
Instead, mention the two supported ways to run Weston on DRM and fbdev:
weston-launch helper and logind service.

Cc: "Ucan, Emre (ADITG/ESB)" <eucan at de.adit-jv.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 libweston/compositor-drm.c   | 3 ++-
 libweston/compositor-fbdev.c | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index b641d61e..59c9b65d 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -4040,7 +4040,8 @@ drm_backend_create(struct weston_compositor *compositor,
 						       seat_id, true);
 	if (compositor->launcher == NULL) {
 		weston_log("fatal: drm backend should be run "
-			   "using weston-launch binary or as root\n");
+			   "weston-launch binary, or your system should "
+			   "provide the logind D-Bus API.\n");
 		goto err_compositor;
 	}
 
diff --git a/libweston/compositor-fbdev.c b/libweston/compositor-fbdev.c
index 4b3605cf..fbab634b 100644
--- a/libweston/compositor-fbdev.c
+++ b/libweston/compositor-fbdev.c
@@ -736,8 +736,9 @@ fbdev_backend_create(struct weston_compositor *compositor,
 	compositor->launcher =
 		weston_launcher_connect(compositor, param->tty, "seat0", false);
 	if (!compositor->launcher) {
-		weston_log("fatal: fbdev backend should be run "
-			   "using weston-launch binary or as root\n");
+		weston_log("fatal: fbdev backend should be run using "
+			   "weston-launch binary, or your system should "
+			   "provide the logind D-Bus API.\n");
 		goto out_udev;
 	}
 
-- 
2.13.6



More information about the wayland-devel mailing list