Automatically select the wayland backend if WAYLAND_SOCKET is set
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e4ca8b0bdd
commit
cf40a13820
@ -4168,7 +4168,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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user