compositor-drm, compositor-fbdev: stop suggesting root

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@de.adit-jv.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
[Pekka: added forgotten "using" word.]
This commit is contained in:
Pekka Paalanen
2017-10-31 10:19:48 +02:00
parent 1a2adfedea
commit a453f4d564
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -4039,8 +4039,9 @@ drm_backend_create(struct weston_compositor *compositor,
compositor->launcher = weston_launcher_connect(compositor, config->tty, compositor->launcher = weston_launcher_connect(compositor, config->tty,
seat_id, true); seat_id, true);
if (compositor->launcher == NULL) { if (compositor->launcher == NULL) {
weston_log("fatal: drm backend should be run " weston_log("fatal: drm backend should be run using "
"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; goto err_compositor;
} }
+3 -2
View File
@@ -736,8 +736,9 @@ fbdev_backend_create(struct weston_compositor *compositor,
compositor->launcher = compositor->launcher =
weston_launcher_connect(compositor, param->tty, "seat0", false); weston_launcher_connect(compositor, param->tty, "seat0", false);
if (!compositor->launcher) { if (!compositor->launcher) {
weston_log("fatal: fbdev backend should be run " weston_log("fatal: fbdev backend should be run using "
"using weston-launch binary or as root\n"); "weston-launch binary, or your system should "
"provide the logind D-Bus API.\n");
goto out_udev; goto out_udev;
} }