compositor: Move weston-launch socket lookup to drm backend
This is the only backend that uses the launcher, so let's set it
up there.
diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 45e7e9b..5a5d79c 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -2468,6 +2468,8 @@
}
/* Check if we run drm-backend using weston-launch */
+ ec->base.launcher_sock =
+ weston_environment_get_fd("WESTON_LAUNCHER_SOCK");
if (ec->base.launcher_sock == -1 && geteuid() != 0) {
weston_log("fatal: drm backend should be run "
"using weston-launch binary or as root\n");