[PATCH x11spice] Fix running tests on Debian/Ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Brendan Shanks <bshanks@xxxxxxxxxxxxxxx>
---
 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

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




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]