[Spice-devel] [PATCH x11spice] Fix running tests on Debian/Ubuntu

Brendan Shanks bshanks at codeweavers.com
Mon Aug 5 18:19:56 UTC 2019


Check the Debian/Ubuntu path for the non-wrapper Xorg binary

Signed-off-by: Brendan Shanks <bshanks at 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,
-- 
2.17.1



More information about the Spice-devel mailing list