[PATCH weston v4 11/15] Automatically select the wayland backend if WAYLAND_SOCKET is set
Jason Ekstrand
jason at jlekstrand.net
Tue Feb 25 17:26:43 PST 2014
Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/compositor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compositor.c b/src/compositor.c
index f04bcf9..bc62c36 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -4088,7 +4088,7 @@ int main(int argc, char *argv[])
NULL);
if (!backend) {
- if (getenv("WAYLAND_DISPLAY"))
+ if (getenv("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET"))
backend = strdup("wayland-backend.so");
else if (getenv("DISPLAY"))
backend = strdup("x11-backend.so");
--
1.8.5.3
More information about the wayland-devel
mailing list