diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-23 12:24:00 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-25 09:51:46 -0700 |
commit | 3c95e70496ac29f63c50c3f85458418ce1c81102 (patch) | |
tree | 61ad89ae7a20710bd25589d155e28df0ed26c9f3 /src/compositor-drm.c | |
parent | 9e5d7d17a79d61011a0a43db9e071bf6cf5eb500 (diff) | |
download | weston-3c95e70496ac29f63c50c3f85458418ce1c81102.tar.gz weston-3c95e70496ac29f63c50c3f85458418ce1c81102.tar.bz2 weston-3c95e70496ac29f63c50c3f85458418ce1c81102.zip |
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.
Diffstat (limited to 'src/compositor-drm.c')
-rw-r--r-- | src/compositor-drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 45e7e9b0..5a5d79cb 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -2468,6 +2468,8 @@ drm_compositor_create(struct wl_display *display, } /* 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"); |