On 8/5/19 1:19 PM, Brendan Shanks wrote:
Check the Debian/Ubuntu path for the non-wrapper Xorg binary

Signed-off-by: Brendan Shanks <bsha...@codeweavers.com>

Acked-by: Jeremy White <jwh...@codeweavers.com>

---
  src/tests/xdummy.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/src/tests/xdummy.c b/src/tests/xdummy.c
index 0651dc7..ce57b1c 100644
--- a/src/tests/xdummy.c
+++ b/src/tests/xdummy.c
@@ -157,6 +157,8 @@ static int exec_xorg(xdummy_t *server, gconstpointer 
user_data G_GNUC_UNUSED)
      strcpy(xorg_binary, "Xorg");
      if (access("/usr/libexec/Xorg", X_OK) == 0)
          strcpy(xorg_binary, "/usr/libexec/Xorg");
+    else if (access("/usr/lib/xorg/Xorg", X_OK) == 0)
+        strcpy(xorg_binary, "/usr/lib/xorg/Xorg");
return execlp(xorg_binary, xorg_binary, "-ac",
                    "-config", server->xorg_fname,


_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to