compositor-drm: ensure we run drm-backend using weston-launch

We do this by checking if launcher_sock != -1

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=60926
This commit is contained in:
Rafal Mielniczuk 2013-03-27 18:39:28 +01:00 committed by Kristian Høgsberg
parent 1b4b61ace3
commit 32069c09ea

View file

@ -2166,6 +2166,13 @@ drm_compositor_create(struct wl_display *display,
goto err_base;
}
/* Check if we run drm-backend using weston-launch */
if (ec->base.launcher_sock == -1) {
weston_log("fatal: drm backend should be run "
"using weston-launch binary\n");
goto err_compositor;
}
ec->udev = udev_new();
if (ec->udev == NULL) {
weston_log("failed to initialize udev context\n");